Running generic/{453,454} tests is probably only useful for filesystems
that allow unrestricted byte streams for names.
Signed-off-by: Pavel Reichl <preichl@redhat.com>
Suggested-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
_notrun "od does not support endian flag"
}
_notrun "od does not support endian flag"
}
+# Skip this test unless the filesystem treats names (directory entries,
+# fs labels, and extended attribute names) as raw byte sequences.
+_require_names_are_bytes() {
+ case "$FSTYP" in
+ ext2|ext3|ext4|f2fs|xfs|btrfs)
+ # do nothing
+ ;;
+ *)
+ _notrun "$FSTYP does not allow unrestricted byte streams for names"
+ ;;
+ esac
+}
+
init_rc
################################################################################
init_rc
################################################################################
# Import common functions.
_require_scratch
# Import common functions.
_require_scratch
+_require_names_are_bytes
echo "Format and mount"
_scratch_mkfs > $seqres.full 2>&1
echo "Format and mount"
_scratch_mkfs > $seqres.full 2>&1
_require_scratch
_require_attrs
_require_scratch
_require_attrs
+_require_names_are_bytes
echo "Format and mount"
_scratch_mkfs > $seqres.full 2>&1
echo "Format and mount"
_scratch_mkfs > $seqres.full 2>&1