summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
AgeCommit message (Expand)Author
2023-02-10Remove explicit rejection of zero duid in disk_map() added in 1.262.Miod Vallat
2022-11-11Revert last until we can guarantee gh_guid can't escape to theKenneth R Westerback
2022-11-11Use the first 8 bytes of GPT gh_guid as the default d_uid. gh_guid isKenneth R Westerback
2022-11-10Add mbr_get_fstype() and use it to translate MBR dp_typ fieldsKenneth R Westerback
2022-11-09gpt_get_fstype() doesn't modify its parameter so make saidKenneth R Westerback
2022-11-07Nuke last references to d_drivedata.Kenneth R Westerback
2022-10-11Give checkdisklabel() a new parameter supplying the dev_t of theKenneth R Westerback
2022-09-23Don't hardcode disk major device types inside DEBUG block. UseKenneth R Westerback
2022-09-15Remove unneeded interim DPRINTF() verbiage. Make DEBUG compileKenneth R Westerback
2022-09-11Remove the DKF_LABELVALID flag from struct disk. Instead, trust disk driversMiod Vallat
2022-09-11Add #define's for GPT partition attribute bits REQUIRED, IGNOREKenneth R Westerback
2022-09-03Allow suspend with root on sdmmc(4).Mark Kettenis
2022-09-02Constify nam2blk[], chrtoblktbl[] and octeon devmap[].Miod Vallat
2022-09-02Don't ignore an OpenBSD GPT partition just because the GPT saysKenneth R Westerback
2022-09-02Nuke variable partlba that is set but not used.Kenneth R Westerback
2022-09-02Relax GTP header validity check by allowing 1 sector size usableKenneth R Westerback
2022-09-01Stop setting d_bbsize and d_sbsize. Nobody has paidKenneth R Westerback
2022-08-20Restore the exemption from start/size checks that OpenBSD (A6)Kenneth R Westerback
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-08-12Revert to pre-r1.249 more laissez-faire checks for valid MBRKenneth R Westerback
2022-08-12Coverity says multiplying two uint32_t's and assigning them toKenneth R Westerback
2022-08-11Don't trust gpt header data read from disk until after itsKenneth R Westerback
2022-08-06Refactor readdoslabel() into a more readable form using variousKenneth R Westerback
2022-01-02Stop writing big-endian checksums into the little-endian GPTKenneth R Westerback
2021-12-22While malloc sleeps, the disk list could change during sysctl. ThenAlexander Bluhm
2021-10-24use NULL not 0 for pointer values in kernJonathan Gray
2021-06-13Back off a couple of the more paranoid checks while spoofing GPTKenneth R Westerback
2021-06-02Use the same logic in all copies of gpt_chk_mbr(), relaxing theKenneth R Westerback
2021-06-01Make spoofed disklabel boundstart and boundend default to the boundsKenneth R Westerback
2021-05-27Relax criteria for recognizing GPT formatted media by allowing theKenneth R Westerback
2021-05-14Whitespace tweaks and a couple of stray u_int* in gpt_chk_mbr().Kenneth R Westerback
2021-05-14Tweak the two copies of gpt_chk_mbr() to return the index of the MBRKenneth R Westerback
2021-05-08Spoof GPT partitions of type 21686148-6449-6e6f-744e-656564454649 (a.k.a.Kenneth R Westerback
2021-01-19kern/subr_disk.c: convert ifunit() to if_unit(9)mvs
2020-05-29dev/rndvar.h no longer has statistical interfaces (removed during variousTheo de Raadt
2020-03-13Simplify logic, the "netboot" interface is always related to `bootdv'.Martin Pieuchot
2019-12-26tsleep -> tsleep_nsec(9) in setroot()kn
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
2018-03-05fix a memory leak in readdoslabel()Jonathan Gray
2017-08-07Turns out gcc complains about %02hhx. So simply use %02x instead. This isMark Kettenis
2017-08-06Use %hhx instead of %hx to print u_char. Silences clang warning.Mark Kettenis
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toTheo de Raadt
2017-04-20Tweak lock inits to make the system runnable with witness(4)Visa Hankala
2016-09-02Don't bother with 'ghpartnum' in gpt_chk_hdr(); it's not usedTom Cosgrove
2016-05-21Fix logic bug in DUID generation - we want to generate DUIDs until we haveJoel Sing
2016-05-21Cleanup some of the DUID code and refactor for readability.Joel Sing
2016-05-20Remove dead assignment/unused variable.Joel Sing
2016-05-19Let setroot() pick the boot disk based on the DUID provided in bootduid ifMark Kettenis
2016-02-08"exceeds past the end" -> "extends past the end" in comment.Kenneth R Westerback
2015-12-24Make gpt_chk_mbr() instances even more identicaller by alwaysKenneth R Westerback