summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
AgeCommit message (Expand)Author
2011-07-26No need to byte-swap d_checksum just before setting it to zero.Kenneth R Westerback
2011-07-06On several archs (e.g. hppa, sgi, macppc) readdoslabel() is called after an a...Kenneth R Westerback
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
2011-07-05Add checks for sector-alignment and whole number of sectors toMatthew Dempsky
2011-06-30Refactor some common open/close/detach disk driver code intoMatthew Dempsky
2011-06-19Minor cleanup for disk_lock() and disk_unlock().Matthew Dempsky
2011-06-19Add disk_lock_nointr() as a way to acquire the disk lock without beingMatthew Dempsky
2011-06-19Kill the "lockname" argument to disk_construct().Matthew Dempsky
2011-06-03Get rid of the wlabel argument to bounds_check_with_label(). It'sMatthew Dempsky
2011-06-01Add device_ref/device_unref calls to prevent a possible use-after-freeMatthew Dempsky
2011-04-28spacesMarco Peereboom
2011-04-26Allow the root device to be identified via its disklabel UID.Joel Sing
2011-04-16Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofKenneth R Westerback
2011-04-15In days of yore one could arbitrarily whack buffer flags. Those daysKenneth R Westerback
2011-03-19Repair spoofing. We want to start at 'i', not 'j'.Kenneth R Westerback
2011-03-17Uncommitted bits. Spotted by deraadt@, who theorizes I have insuffientKenneth R Westerback
2011-03-14Don't confuse limiting spoofed partitions with limiting how manyKenneth R Westerback
2010-11-24Ensure that hw.disknames gets updated whenever a disklabel is set, sinceJoel Sing
2010-11-18Do not #include <sys/dkstat.h> if you don't need anything from it.Miod Vallat
2010-09-24Fixes before-boot umass hangs on units without media.Theo de Raadt
2010-09-23The only sensible argument for VOP_* calls that take a struct proc pointer isOwain Ainsworth
2010-09-23When a disk is attached create a workq task to read the disklabel,Joel Sing
2010-09-08Introduce a disk_lookup() function which calls device_lookup(), beforeJoel Sing
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
2010-09-01Do not panic in parsedisk() for ``second class'' block devices (which we can'tMiod Vallat
2010-08-30Add a device number to struct disk and populate it on disk attach. WhilstJoel Sing
2010-08-18- fix compilation of kernel without FFS...don't ask ;-)Jasper Lievisse Adriaanse
2010-06-27Factor out code used to read a disklabel. We'll be making use of this soon.Joel Sing
2010-05-03Provide a disk_map() function which attempts to map a disklabel UID to theJoel Sing
2010-04-28When setting a disklabel automatically generate a new UID if it does notJoel Sing
2010-04-25introducing a 64-bit type to the disklabel structure leads some architecturesTheo de Raadt
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
2010-01-14fix typos in comments, no code changes;Ingo Schwarze
2010-01-11Negative offset or negative size in a buf is invalid. Treat just like otherKenneth R Westerback
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
2009-08-09Make dk_mmountroot use vnodes instead of d_open/d_close. This does uglyMarco Peereboom
2009-06-17Revert bufq's. this is inline with the major midlayer reverts thatThordur I. Bjornsson
2009-06-14Don't mess with the bounds in the lp if *partoffp is non-NULL, since thisTheo de Raadt
2009-06-05Clamp the ending bound to the size of the disk. This makes disklabel -ATheo de Raadt
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
2009-06-03add a flexible buffer queue (bufq) api, based on the never usedThordur I. Bjornsson
2009-06-03Add a callback specifically for softraid. If you touch this kittens willMarco Peereboom
2009-06-03remove the never used bufq_ code.Thordur I. Bjornsson
2009-05-15Validate the main MBR minimally; if it does not have the AA55 thingy we mustTheo de Raadt
2009-05-13initialize d_npartitions to MAXPARTITIONS always; ok krwTheo de Raadt
2009-05-03Discovering an extended MBR partition and setting 'wander' to 1Kenneth R Westerback
2009-03-28use a static and unique string as the disk lock name, so if we're waitingDavid Gwynne
2009-02-09two more consistency checks for a disklabel, to prevent havoc laterOtto Moerbeek
2008-11-21Relax sanity check so any two-byte jmp followed by a NOP, or anyKenneth R Westerback
2008-08-25If partoffp is non-NULL then readdoslabel() is just looking for theKenneth R Westerback