]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/532: do not break golden silence if attributes_mask is 0
authorMurphy Zhou <xzhou@redhat.com>
Wed, 8 May 2019 03:11:44 +0000 (11:11 +0800)
committerEryu Guan <guaneryu@gmail.com>
Thu, 9 May 2019 07:31:18 +0000 (15:31 +0800)
If the filesystem does not support STATX_ATTR, like NFS, setting
both attributes and attributes_mask to 0 seems the right thing to
do. attributes_mask can be 0 only if attributes is also 0.
This situation is covered by the "&" check in the next line.

Signed-off-by: Murphy Zhou <xzhou@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/532

index ac8b7a89143423c40d9e22af39c184298634b9a2..3f8afa4ace1c717d962a39c614beaa35e31f42d1 100755 (executable)
@@ -44,7 +44,6 @@ check_statx_attributes()
        echo "MASK:$mask:ATTRS:$attrs:" >> $seqres.full
 
        test -z "$mask" && _notrun "xfs_io statx command does not support attributes_mask"
-       test $(( mask )) -eq 0 && echo "attributes mask is zero"
        test $(( attrs & ~(mask) )) -ne 0 && echo "attributes $attrs do not appear in mask $mask"
 }