1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-24 17:57:48 +03:00

tests: detect reiserfs support

Since reiserfs is not commonly available detect its presence in kernel.
Stop reporting skipped test as WARNING.
This commit is contained in:
Zdenek Kabelac 2014-02-28 23:05:58 +01:00
parent 090e81281f
commit 72ecf8e591

View File

@ -29,8 +29,11 @@ which mkfs.xfs || check_xfs=${check_xfs:-mkfs.xfs}
which xfs_check || {
which xfs_repair || check_xfs=${check_xfs:-xfs_repair}
}
grep xfs /proc/filesystems || check_xfs=${check_xfs:-no_xfs}
which mkfs.reiserfs || check_reiserfs=${check_reiserfs:-mkfs.reiserfs}
which reiserfsck || check_reiserfs=${check_reiserfs:-reiserfsck}
grep reiserfs /proc/filesystems || check_reiserfs=${check_reiserfs:-no_reiserfs}
vg_lv=$vg/$lv1
vg_lv2=$vg/${lv1}bar
@ -75,9 +78,9 @@ check_missing()
eval local t=$\check_$1
test -z "$t" && return 0
test "$t" = skip && return 1
# trick to get test listed with warning
echo "WARNING: fsadm test skipped $1 tests, $t tool is missing."
should false;
# trick to get test listed with warning
# should false;
return 1
}