acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Acl-devel] attr ptest failed on fsl_ls1021a


From: Mike Frysinger
Subject: Re: [Acl-devel] attr ptest failed on fsl_ls1021a
Date: Fri, 11 Nov 2016 22:42:14 -0800

On 10 Nov 2016 13:39, Dengke Du wrote:
> My arch is arm ( armv7l), fsl_ls1021a
> 
> When I ran test:
> 
>      $ setfattr -n user. -v value testfile
> 
> It output:
> 
>      setfattr: test: Operation not supported
> 
> It should be :
> 
>      setfattr: test: Invalid argument
> 
> I uesd strace tracing it, it output the following:
> 
>      setxattr("test", "user.", "value", 5, 0) = -1 EOPNOTSUPP (Operation 
> not supported)
> 
> On my x86_64 was correct,
> 
>      setxattr("test", "user.", "value", 5, 0) = -1 EINVAL (Invalid argument)
> 
> Can anybody tell me why?

you're seeing kernel behavior, not acl/attr behavior

the kernel will return EOPNOTSUPP when the FS in question doesn't
support xattrs at all.  EINVAL comes up when xattrs are supported
but the requested operation is invalid.

i.e. what you're reporting is not a bug but WAI.
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]