set_e2attrs
Description:
public bool set_e2attrs (string file, string attrs, SetE2attrs? optargs) throws Error
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.
Parameters:
this |
A GuestfsSession object |
optargs |
a GuestfsSetE2attrs containing optional arguments |
Returns:
true on success, false on error |