How to enable xattr for xfs on ubuntu?
When I tried to execute 'swauth-add-account -K mypassword test', I got the following error in /var/log/
File "/usr/lib/
From another question (#121011), gholt answered:
This error:
...xattr/
This is the code trying to write xattrs to a file system that does not support xattrs. Swift data drives, the ones pointed to by the 'devices' configuration variable, require xattr support. It has been tested with xfs, but other file systems also support xattrs (see http://
I tried to add user_xattr in /etc/fstab, but got 'invalid mount option'. Here's my xfs line entry in /etc/fstab:
/srv/swift-disk /mnt/sdb1 xfs loop,noatime,
I also tried attr2 instead of user_xattr,
/srv/swift-disk /mnt/sdb1 xfs loop,noatime,
This time mount is OK, but got the same error when trying swauth-add-account. Here's my uname -a result:
Linux ubuntu 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux
Does anyone know how to explicitly enable xattr for xfs on my ubuntu? Or how to resolve 'Operation not supported... error on xattr/__init__.py line 16 '?
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- gholt
- Solved:
- Last query:
- Last reply: