Fix the incorrect parameter being passed to this new predicate.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
}
# Require that the fundamental allocation unit of a file is the same as the
-# filesystem block size.
+# filesystem block size. The sole parameter must be the root dir of a
+# filesystem.
_require_file_block_size_equals_fs_block_size()
{
local file_alloc_unit="$(_get_file_block_size $1)"
# FIEMAP test doesn't like finding unwritten blocks after it punches out
# a partial rt extent.
test "$FSTYP" = "xfs" && \
- _require_file_block_size_equals_fs_block_size $fiemapfile
+ _require_file_block_size_equals_fs_block_size $SCRATCH_MNT
seed=`date +%s`
# FIEMAP test doesn't like finding unwritten blocks after it punches out
# a partial rt extent.
test "$FSTYP" = "xfs" && \
- _require_file_block_size_equals_fs_block_size $fiemapfile
+ _require_file_block_size_equals_fs_block_size $SCRATCH_MNT
seed=`date +%s`