To use xattr, you will need libattr installed. It is available at » http://savannah.nongnu.org/projects/attr/.
注意:
These functions only work on filesystems that support extended attributes, and have them enabled at mount time. Some common filesystems that support extended attributes are
ext2
,ext3
,reiserfs
,jfs
, andxfs
.