summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
AgeCommit message (Expand)Author
2015-12-24Make gpt_chk_mbr() instances even more identicaller by alwaysKenneth R Westerback
2015-12-24Make all instances of gpt_chk_mbr() identical (bar static vsKenneth R Westerback
2015-09-25Don't immediately try to checksum the GPT header using the sizeKenneth R Westerback
2015-09-24Move declaration of readdisksector() to disklabel.h. This makes itKenneth R Westerback
2015-09-24A couple of missing letoh32() conversions of GPT header fields inKenneth R Westerback
2015-09-15Unbeak boot from GPT partition. Reported by Henrik Friedrichsen.YASUOKA Masahiko
2015-09-13Move prototype for spoofgptlabel() from disklabel.h to subr_disk.c.Kenneth R Westerback
2015-09-13Rename readgptlabel() to spoofgptlabel() because that's what weKenneth R Westerback
2015-09-11Hoist all the GPT header checks into gpt_chk_header(). Tweak remainingKenneth R Westerback
2015-09-11Move all prototypes of gpt helper functions to top of file. RenameKenneth R Westerback
2015-09-11Shuffle some variables around, add a couple, and eliminate hordesKenneth R Westerback
2015-09-11Move initialization of count of spoofed GPT partitions closerKenneth R Westerback
2015-09-11GPT partitions cannot start at offset 0. Eliminate the variableKenneth R Westerback
2015-09-11KNF shuffling of local declarations in readgptlabel().Kenneth R Westerback
2015-09-11readgptlabel() is called from readdoslabel() so there is no needKenneth R Westerback
2015-09-11Spoof EFI SYSTEM GPT partitions as MSDOS partitions. As is doneKenneth R Westerback
2015-09-11Eliminate use-once variable in readgptlabel() and just use theKenneth R Westerback
2015-09-11Don't spoof GPT OpenBSD partitions. Simply record and use the first oneKenneth R Westerback
2015-09-10Now that the GPT code tries really hard not to get in the way andKenneth R Westerback
2015-09-10Call readgptlabel() from readdoslabel() instead of MD readdisklabel().Kenneth R Westerback
2015-09-10Don't stop spoofing GPT partitions when the OpenBSD partition isKenneth R Westerback
2015-09-09No need to set d_npartitions in readdoslabel() or readgptlabel().Kenneth R Westerback
2015-09-01a white space krw could not seeTheo de Raadt
2015-09-01'bogous' is bogus spelling of 'bogus' in debug message.Kenneth R Westerback
2015-09-01Missing letoh64() when checking value of gh_lba_alt.Kenneth R Westerback
2015-08-31Abstract 5 identical code blocks into a readdisksector() function.Kenneth R Westerback
2015-08-31Rejig the the expression calculating of the address of the diskKenneth R Westerback
2015-08-30In readgptlabel() avoid pointless conversions from sector countsKenneth R Westerback
2015-08-30Eliminate a couple of extraneous DL_SECTOBLK() calls.Kenneth R Westerback
2015-08-29In readgptlabel() the block offsets of the GPT header and GPT partitionKenneth R Westerback
2015-08-28Move label 'offset' calculation out of the buf setup logic andKenneth R Westerback
2015-08-28Rename 'part_blkno' to 'sector' as it has not held DEV_BSIZE values inKenneth R Westerback
2015-08-26Enhance setdisklabel() to ensure that the disk size and 'C'Kenneth R Westerback
2015-08-24Fix GPT code to work with non-DEV_BSIZE disks.Kenneth R Westerback
2015-08-12Remove last two 'uses' of d_subtype in tree. No point in settingKenneth R Westerback
2015-07-29Zap a couple of extra blank lines that keep showing up in diffs I'mKenneth R Westerback
2015-07-28Convert sectors to DEV_BSIZE block values were necessary to find,Kenneth R Westerback
2015-07-26Always initialize the b_error field and B_ERROR flag before usingKenneth R Westerback
2015-07-23Revert attempted GPT code cleanup. Too much code, too little testing.Kenneth R Westerback
2015-05-09Cleanup/rejig GPT code to be more readable, support different endianKenneth R Westerback
2015-03-15Bring back '#include <lib/libz/zlib.h>', but inside #ifdev GPT. GPTKenneth R Westerback
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-01-27remove the second void * argument on tasks.David Gwynne
2014-12-30Rework disklabel reading taskq to plug holes pointed out by jsing@.Kenneth R Westerback
2014-12-28Replace last workq in tree (reading disklabels from newly attachedKenneth R Westerback
2014-12-20Zap a sneaky trailing blank that was hiding in plain view.Kenneth R Westerback
2014-12-20Zap local variable that shadows another local variable. Fixes a panic causedMark Kettenis
2014-12-20Zap a bunch of leading/trailing whitespace.Kenneth R Westerback
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
2014-11-03correct test logic. ok guentherTed Unangst