Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would use xattr in python, but found the xattr's keys() is empty, does that indicate the libattr feature wasn't enabled? I've learned the libattr feature is disabled in ext3/ext4 by default, but how to enable it? Expect your help! Thank you~

>>> import xattr
>>> x = xattr.xattr('tiger_8a428_userdvd.dmg')
>>> x
<xattr file='tiger_8a428_userdvd.dmg'>
>>> x.keys()
[]
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Add user_xattr to the mount options for the filesystem in /etc/fstab.

Something like:

UUID=b1ab1ab1-ab1a-b1ab-1ab1-ab1ab1ab1ab1  /  ext3  user_xattr,relatime,errors=remount-ro 0  1
share|improve this answer
    
thank u very much~ –  zkz Aug 11 '10 at 4:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.