• Chao Yu's avatar
    f2fs: correct return value of ->setxattr · 037fe70c
    Chao Yu authored
    This patch fixes to return correct error number of ->setxattr, which
    is reported by xfstest tests/generic/026 as below:
    
    generic/026      - output mismatch
        --- tests/generic/026.out
        +++ results/generic/026.out.bad
        @@ -4,6 +4,6 @@
         1 below acl max
         acl max
         1 above acl max
        -chacl: cannot set access acl on "largeaclfile": Argument list too long
        +chacl: cannot set access acl on "largeaclfile": Numerical result out of range
         use 16 aces
         use 17 aces
        ...
    Ran: generic/026
    Failures: generic/026
    Failed 1 of 1 tests
    Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    037fe70c
xattr.c 14.8 KB