Pengzhen Cao
2010-Apr-08 01:49 UTC
[Libguestfs] Does anybody know how to use the getxattr/setxattr commmands in guestfish?
Hi All, Does anybody know how to use the getxattr/setxattr commands in guestfish? It seems not working for ext2/3 filesystem. I did not find the corresponding commands in bash either. So is it for xfs only? Regards, Pengzhen Cao
Richard W.M. Jones
2010-Apr-08 08:01 UTC
[Libguestfs] Does anybody know how to use the getxattr/setxattr commmands in guestfish?
On Thu, Apr 08, 2010 at 09:49:26AM +0800, Pengzhen Cao wrote:> Hi All, > > Does anybody know how to use the getxattr/setxattr commands in guestfish? > It seems not working for ext2/3 filesystem. I did not find the > corresponding commands in bash either. > So is it for xfs only?Not just for xfs, this should work for ext2/3 as well. The problem is you cannot just create any xattr. The kernel will only recognize certain xattrs on files, so it's probably best to read the attr(5) manual page first. Can you post some examples of commands you are trying to use? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Apparently Analagous Threads
- How many fs types do we need to test
- Problems since 3.12.7: invisible files, strange rebalance size, setxattr failed during rebalance and broken unix rights
- Problems since 3.12.7: invisible files, strange rebalance size, setxattr failed during rebalance and broken unix rights
- guestfish ... [SEC=UNCLASSIFIED]
- RFC: copy-attributes command