1548e64fc6
If a disk is of an oddball size, like the 200mb + 512b used in rootgen.sh, when disk_open() is called on a GELI encrypted partition, attempts to read the partition table fail, as they pass through the decryption process which turns the already plaintext data into jibberish. When reading the partition table, always pass a slice and partition setting of -1, and an offset of 0. Setting the slice to -1 prevents a false positive when checking the slice against the cache of GELI encrypted slices. Reviewed by: imp, ian Sponsored by: Klara Systems Differential Revision: https://reviews.freebsd.org/D15847 |
||
---|---|---|
.. | ||
bcache.c | ||
boot.c | ||
bootstrap.h | ||
commands.c | ||
console.c | ||
dev_net.c | ||
dev_net.h | ||
devopen.c | ||
disk.c | ||
disk.h | ||
help.common | ||
install.c | ||
interp_backslash.c | ||
interp_forth.c | ||
interp_lua.c | ||
interp_parse.c | ||
interp_simple.c | ||
interp.c | ||
isapnp.c | ||
isapnp.h | ||
load_elf32_obj.c | ||
load_elf32.c | ||
load_elf64_obj.c | ||
load_elf64.c | ||
load_elf_obj.c | ||
load_elf.c | ||
ls.c | ||
Makefile.depend | ||
md.c | ||
merge_help.awk | ||
metadata.c | ||
misc.c | ||
module.c | ||
newvers.sh | ||
part.c | ||
part.h | ||
paths.h | ||
pnp.c | ||
rbx.h | ||
reloc_elf32.c | ||
reloc_elf64.c | ||
reloc_elf.c | ||
self_reloc.c | ||
zfs_cmd.c |