Whamcloud - gitweb
LU-16085 llite: fix stat attributes_mask
[fs/lustre-release.git] / lustre / tests / sanityn.sh
index ebb7e04..5febd53 100755 (executable)
@@ -5571,8 +5571,8 @@ test_106c() {
        # Mask supported in stx_attributes by Lustre is
        # STATX_ATTR_IMMUTABLE(0x10) | STATX_ATTR_APPEND(0x20) : (0x30).
        mask=$($STATX -c %p $DIR/$tfile)
-       [[ $mask == "30" ]] ||
-               error "supported stx_attributes: got '$mask', expected '30'"
+       (( 0x$mask & 0x30 == 0x30 )) ||
+               error "supported stx_attributes: got '0x$mask', expected '0x30' at least"
        chattr +i $DIR/$tfile || error "chattr +i $DIR/$tfile failed"
        mask=$($STATX -c %r $DIR/$tfile)
        [[ $mask == "10" ]] ||