Fix the ZFS device detection by looking at multiple uberblocks to see if any are present, rather than looking for the ZFS boot block which is not always present. There may be up to 128 uberblocks, but the first 4 are not written to disk on a newly-formatted filesystem so check several of them at different offsets within the uberblock array. [kzak@redhat.com: - port e2fsprogs patch to util-linux-ng] Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: Karel Zak <kzak@redhat.com> |
||
---|---|---|
.. | ||
expected | ||
helpers | ||
ts | ||
.gitignore | ||
Makefile.am | ||
README | ||
commands.sh.in | ||
functions.sh | ||
run.sh |
README
util-linux regression tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~ It's expected that for each invasive change or important bugfix you will include a test to your patch. Run all tests: ./run.sh [--verbose] Run one tests: ./ts-<component_name>-<test_name>.sh [--verbose] *** WARNING *** The tests touch your /etc/fstab and /etc/blkid.tab. Please, be careful and use these tests only for development and never on production system.