]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/fs: Allow number of blocks in block list to be optional, defaulting length to...
authorGlenn Washburn <development@efficientek.com>
Sun, 21 Mar 2021 18:09:10 +0000 (13:09 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 13 Sep 2021 12:52:40 +0000 (14:52 +0200)
commit0c2aaec01d0b05becae5b7387ae568bcc3d71ff9
tree7ce377c82198ac8a3a49faffc6ca693cecab337e
parent8f35208db4154ede690a18e408375815bbf320b7
kern/fs: Allow number of blocks in block list to be optional, defaulting length to device length

This is primarily useful to do something like "loopback newdev (dev)8+" to
create a device that skips the first 4 KiB, which may contain a container
header, e.g. a non-standard RAID1 header, that GRUB does not recognize. This
would allow that container data to be potentially accessed up to the end of
container, which may be necessary for some layouts that store data at the
end. There is currently not a good way to programmatically get the number
of sectors on a disk to set the appropriate length of the blocklist.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/kern/fs.c