Now that mkfs will set autofsck=repair for filesystems that have both
reverse space mappings and file parent pointers enabled, let's stop
testing the "no autofsck option at all" scenario to avoid problems with
older mkfs.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
}
testme() {
- local mkfs_args=('-f')
local value="$1"
test -n "$value" && value="=$value"
-
- if [ $# -gt 0 ]; then
- mkfs_args+=('-m' "autofsck$value")
- fi
+ local mkfs_args=('-f' '-m' "autofsck$value")
echo "testing ${mkfs_args[*]}" >> $seqres.full
}
testme ''
-testme
testme none
testme check
testme optimize
QA output created by 805
autofsck=repair
-failed to get attr xfs:autofsck on inode XXX: No data available
autofsck=none
autofsck=check
autofsck=optimize