From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030115 Description of problem: Here is an EA test: # cd /tmp # echo boomoo > foo # setfattr -n cost -v 10 foo setfattr: foo: Operation not supported Doing an strace shows the offender: setxattr("foo", "cost", 0x804ae70, 2, ) = -1 EOPNOTSUPP (Operation not supported) Here is an ACL test: # cd /tmp # touch anotherfile # ls -l anotherfile -rw-r--r-- 1 root root 0 Jan 22 14:13 anotherfile # setfacl -m u:joe:7 anotherfile setfacl: anotherfile: Operation not supported strace info: getxattr("anotherfile", "system.posix_acl_access", 0xbfffda30, 132) = -1 EOPNOTSUPP (Operation not supported) setxattr("anotherfile", "system.posix_acl_access", 0x804fcc8, 44, ) = -1 EOPNOTSUPP (Operation not supported) Version-Release number of selected component (if applicable): kernel-2.4.20-2.24
The filesystem needs to be mounted with the acl and/or user_xattr options To verify the filesystem is mounted correctly the output of the mount command whould look like: /dev/sdb3 on /d1 type ext3 (rw,acl,user_xattr)
Those mount options should be in the mount man page. I still have a problem though. ACLs work, ATTRs don't. # mount /dev/hda5 on / type ext3 (rw,acl,user_xattr) [root@mentor tmp]# cd /tmp (this is part of /) [root@mentor tmp]# setfacl -m u:joe:7 somefile [root@mentor tmp]# getfacl somefile # file: somefile # owner: root # group: root user::rw- user:joe:rwx group::r-- mask::rwx other::r-- ATTRs don't work yet.... [root@mentor tmp]# echo lksdjf > foo2 [root@mentor tmp]# setfattr -n cost -v 10 foo2 setfattr: foo2: Operation not supported [root@mentor tmp]#
the name (-n) has to be prefixed with "user." Try: setfattr -n user.cost -v 10 foo2
Does this work for you now?
This works for me with 2.4.20-2.49