mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fstests: filter redundant output by getfattr
When getfattr dumps values of all extended attributes (-d option),
it doesn't print empty extended attributes. e.g: user.name. But from
attr-2.4.48 this behavior is changed, new getfattr prints
user.name="".
The {=""} will break the golden image, so filter the redundant =""
at the end if it has.
Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ set_xattr_loop $test_file &
|
||||
setter_pid=$!
|
||||
|
||||
for ((i = 0; i < 1000; i++)); do
|
||||
$GETFATTR_PROG --absolute-names -n $xattr_name \
|
||||
_getfattr --absolute-names -n $xattr_name \
|
||||
$SCRATCH_MNT/$test_file | value_filter
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user