set ext2 file attributes of a file
This sets or clears the file attributes attrs
associated with the inode file.
attrs
is a string of characters representing file attributes. See
get_e2attrs for a list of possible attributes. Not all attributes can be changed.
If optional boolean clear
is not present or false, then the attrs
listed are set in the inode.
If clear
is true, then the attrs
listed are cleared in the inode.
In both cases, other attributes not present in the attrs
string are left unchanged.
These attributes are only present when the file is located on an ext2/3/4 filesystem. Using this call on other filesystem types will result in an error.
this |
A GuestfsSession object |
optargs |
a GuestfsSetE2attrs containing optional arguments |
true on success, false on error |