/dev/hda1 / ext3 defaults,noatime,user_xattr 0 1 Then remount the partitions:
mount -o remount,user_xattr / Then use setfattr and getfattr to set/get extended attributes.
- Create an attribute 'testing' in the 'user' namespace: setfattr -n user.testing -v "this is a test" test-1.txt
- Delete the attribute: setfattr -x user.testing test-1.txt
- Retrieve the attribute: getfattr -n user.testing test-1.txt
- Backup all extended attributes: getfattr --dump * > data_file
- Restore all extended attributes: setfattr --restore=data_file
No comments:
Post a Comment