• Shi Weihua's avatar
    Btrfs: prohibit a operation of changing acl's mask when noacl mount option used · 731e3d1b
    Shi Weihua authored
    when used Posix File System Test Suite(pjd-fstest) to test btrfs,
    some cases about setfacl failed when noacl mount option used.
    I simplified used commands in pjd-fstest, and the following steps
    can reproduce it.
    ------------------------
    # cd btrfs-part/
    # mkdir aaa
    # setfacl -m m::rw aaa    <- successed, but not expected by pjd-fstest.
    ------------------------
    I checked ext3, a warning message occured, like as:
      setfacl: aaa/: Operation not supported
    Certainly, it's expected by pjd-fstest.
    
    So, i compared acl.c of btrfs and ext3. Based on that, a patch created.
    Fortunately, it works.
    Signed-off-by: default avatarShi Weihua <shiwh@cn.fujitsu.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    731e3d1b
acl.c 6.47 KB