]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
src/stat_test: Fix stx_attributes check
authorRichard Weinberger <richard@nod.at>
Sat, 20 May 2017 22:06:13 +0000 (00:06 +0200)
committerEryu Guan <eguan@redhat.com>
Tue, 23 May 2017 14:05:38 +0000 (22:05 +0800)
commitb14d1bb8b3f6474552f5e98fe5f5471a060a5f56
tree616c76b5f81413dc8ce048822cfaf14676acccc6
parent7ee1b53d77e5e570d6a0a9e717ba45b4bdec30c1
src/stat_test: Fix stx_attributes check

I found that this test succeeds on UBIFS:
stat_test /mnt/foo attr=+compressed attr=-compressed

Since stx_attributes can hold many flags, check the flags
correctly with the & operator.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/stat_test.c