summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
AgeCommit message (Expand)Author
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
2008-08-22simplification, and repair findblkmajor for name## lookups; ok krwTheo de Raadt
2008-08-08Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.Kenneth R Westerback
2008-06-25allow to install and boot the OpenBSD A6 partition and disklabel in anReyk Floeter
2008-06-12Bring biomem diff back into the tree after the nfs_bio.c fix went in.Theo de Raadt
2008-06-11back out biomem diff since it is not right yet. Doing very largeTheo de Raadt
2008-06-10Fix buffer cache pending read statistics by ensuring we can identifyBob Beck
2008-06-10Buffer cache revampBob Beck
2008-05-23Make rd act more like a 'normal' disk device, allowing the elimination ofKenneth R Westerback
2008-04-07Compare device names consistantly in parsedisk().Kenneth R Westerback
2008-03-31nope, sorry, the miod/naddy raidframe change breaks almost all ramdisks.Theo de Raadt
2008-03-31Refine "netboot" interface group semantics to indicate the interface weTheo de Raadt
2008-03-30Do not do the ``swap generic'' behaviour if rootdev != NODEV when enteringMiod Vallat
2008-03-23setroot() is supposed to be safe in all cases, so kill the special casesTheo de Raadt
2007-12-23protect the disk statistics with a mutex.David Gwynne
2007-12-16panic on negative blkno or size; ok kettenis@ deraadt@Otto Moerbeek
2007-11-09Make disklabel aware of NTFS.Joel Sing
2007-09-07Use M_ZERO in a few more places to shave bytes from the kernel.Artur Grabowski
2007-08-05Move some printf's about disklabel disksize and RAW_PART size/offsetKenneth R Westerback
2007-08-05Use d_partitions[DISKPART(dev)] rather that d_partitions +Kenneth R Westerback
2007-06-25use daddr64_t for size in bounds_check_with_label(); prompted by miod@;Otto Moerbeek
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
2007-06-17significantly simplified disklabel infrastructure. MBR handling becomes MITheo de Raadt
2007-06-10when we change fields in the label to version 1, fix the checksum (but onlyTheo de Raadt
2007-06-09blocks/sectors != blocks/blocks. Fix calculation of b_cylinder inKenneth R Westerback
2007-06-09The differences in the last non-homogeneous bounds_check_with_label()Kenneth R Westerback
2007-06-09silently whack wrong-sized C partitionsTheo de Raadt
2007-06-09handle C non-0 start after doing v1 converstion.. sighTheo de Raadt
2007-06-09by hand i carefully found that all the differences in setdisklabel()Theo de Raadt
2007-06-09be even more forceful with RAW_PART (and note this is the wrong, and temporar...Theo de Raadt
2007-06-09push RAW_PART to 0 if it is non-zero, and bitchTheo de Raadt
2007-06-06fix format strings for block #'s now that they are 64 bit; ok tedu (whoTheo de Raadt
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
2007-06-06oopsTheo de Raadt
2007-06-06even more problems with disk size consistancy checksTheo de Raadt
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
2007-06-04disable a part of the label validation because some Sun systemsTheo de Raadt
2007-06-02Rename cvtdisklabelv1 -> disklabeltokernlabel. It does more than justKenneth R Westerback
2007-06-01Add two constraints to V1 disklabels:Kenneth R Westerback
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
2007-05-18Dont write to the string passed to parsedisk(), ok deraadt@Dale Rahn
2007-05-18in case of pre-configured nfs, we must assume that the bootdv is the rootdvTheo de Raadt
2007-05-15now that setroot() prints nice things like:Theo de Raadt