common/casefold: only check for the Casefold flag

The _casefold_lsattr_dir function lists all of the file attributes.
As result, tests/generic/556.out has an ext4-specific assumption
that the test directories will have the Extents attribute. That
won't be true for all file systems, and it won't even be true for
ext4 file systems that do not have the extents feature enabled.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Theodore Ts'o
2019-08-26 13:50:20 -04:00
committed by Eryu Guan
parent 3312c32e2c
commit ed425ca923
2 changed files with 10 additions and 6 deletions
+5 -5
View File
@@ -1,9 +1,9 @@
QA output created by 556
SCRATCH_MNT/basic Extents, Casefold
SCRATCH_MNT/basic Extents
SCRATCH_MNT/casefold_flag_removal Extents, Casefold
SCRATCH_MNT/casefold_flag_removal Extents, Casefold
SCRATCH_MNT/flag_inheritance/d1/d2/d3 Extents, Casefold
SCRATCH_MNT/basic Casefold
SCRATCH_MNT/basic
SCRATCH_MNT/casefold_flag_removal Casefold
SCRATCH_MNT/casefold_flag_removal Casefold
SCRATCH_MNT/flag_inheritance/d1/d2/d3 Casefold
SCRATCH_MNT/symlink/ind1/TARGET
mv: cannot stat 'SCRATCH_MNT/rename/rename': No such file or directory
# file: SCRATCH_MNT/xattrs/x