summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* kern/subr_disk.c: convert ifunit() to if_unit(9)mvs2021-01-191-3/+5
* dev/rndvar.h no longer has statistical interfaces (removed during variousderaadt2020-05-291-2/+1
* Simplify logic, the "netboot" interface is always related to `bootdv'.mpi2020-03-131-4/+2
* tsleep -> tsleep_nsec(9) in setroot()kn2019-12-261-2/+2
* replace add_*_randomness with enqueue_randomness()jasper2018-04-281-3/+3
* fix a memory leak in readdoslabel()jsg2018-03-051-8/+5
* Turns out gcc complains about %02hhx. So simply use %02x instead. This iskettenis2017-08-071-2/+2
* Use %hhx instead of %hx to print u_char. Silences clang warning.kettenis2017-08-061-2/+2
* Also pass the blk offset to disk_unbusy(), so that it can pass it toderaadt2017-05-041-3/+4
* Tweak lock inits to make the system runnable with witness(4)visa2017-04-201-2/+2
* Don't bother with 'ghpartnum' in gpt_chk_hdr(); it's not usedtom2016-09-021-3/+2
* Fix logic bug in DUID generation - we want to generate DUIDs until we havejsing2016-05-211-2/+2
* Cleanup some of the DUID code and refactor for readability.jsing2016-05-211-28/+48
* Remove dead assignment/unused variable.jsing2016-05-201-4/+2
* Let setroot() pick the boot disk based on the DUID provided in bootduid ifkettenis2016-05-191-2/+10
* "exceeds past the end" -> "extends past the end" in comment.krw2016-02-081-2/+2
* Make gpt_chk_mbr() instances even more identicaller by alwayskrw2015-12-241-2/+2
* Make all instances of gpt_chk_mbr() identical (bar static vskrw2015-12-241-6/+4
* Don't immediately try to checksum the GPT header using the sizekrw2015-09-251-15/+10
* Move declaration of readdisksector() to disklabel.h. This makes itkrw2015-09-241-3/+1
* A couple of missing letoh32() conversions of GPT header fields inkrw2015-09-241-3/+4
* Unbeak boot from GPT partition. Reported by Henrik Friedrichsen.yasuoka2015-09-151-2/+2
* Move prototype for spoofgptlabel() from disklabel.h to subr_disk.c.krw2015-09-131-1/+2
* Rename readgptlabel() to spoofgptlabel() because that's what wekrw2015-09-131-63/+39
* Hoist all the GPT header checks into gpt_chk_header(). Tweak remainingkrw2015-09-111-60/+64
* Move all prototypes of gpt helper functions to top of file. Renamekrw2015-09-111-7/+7
* Shuffle some variables around, add a couple, and eliminate hordeskrw2015-09-111-16/+20
* Move initialization of count of spoofed GPT partitions closerkrw2015-09-111-2/+3
* GPT partitions cannot start at offset 0. Eliminate the variablekrw2015-09-111-11/+10
* KNF shuffling of local declarations in readgptlabel().krw2015-09-111-9/+6
* readgptlabel() is called from readdoslabel() so there is no needkrw2015-09-111-6/+1
* Spoof EFI SYSTEM GPT partitions as MSDOS partitions. As is donekrw2015-09-111-2/+6
* Eliminate use-once variable in readgptlabel() and just use thekrw2015-09-111-4/+2
* Don't spoof GPT OpenBSD partitions. Simply record and use the first onekrw2015-09-111-2/+4
* Now that the GPT code tries really hard not to get in the way andkrw2015-09-101-11/+1
* Call readgptlabel() from readdoslabel() instead of MD readdisklabel().krw2015-09-101-1/+59
* Don't stop spoofing GPT partitions when the OpenBSD partition iskrw2015-09-101-4/+3
* No need to set d_npartitions in readdoslabel() or readgptlabel().krw2015-09-091-9/+1
* a white space krw could not seederaadt2015-09-011-2/+2
* 'bogous' is bogus spelling of 'bogus' in debug message.krw2015-09-011-2/+2
* Missing letoh64() when checking value of gh_lba_alt.krw2015-09-011-2/+2
* Abstract 5 identical code blocks into a readdisksector() function.krw2015-08-311-42/+31
* Rejig the the expression calculating of the address of the diskkrw2015-08-311-5/+5
* In readgptlabel() avoid pointless conversions from sector countskrw2015-08-301-9/+7
* Eliminate a couple of extraneous DL_SECTOBLK() calls.krw2015-08-301-5/+3
* In readgptlabel() the block offsets of the GPT header and GPT partitionkrw2015-08-291-5/+3
* Move label 'offset' calculation out of the buf setup logic andkrw2015-08-281-5/+5
* Rename 'part_blkno' to 'sector' as it has not held DEV_BSIZE values inkrw2015-08-281-11/+11
* Enhance setdisklabel() to ensure that the disk size and 'C'krw2015-08-261-1/+7
* Fix GPT code to work with non-DEV_BSIZE disks.krw2015-08-241-21/+17