adjust ext2/ext3/ext4 filesystem parameters
This call allows you to adjust various filesystem parameters of an ext2/ext3/ext4 filesystem called device
.
The optional parameters are:
force
Force tune2fs to complete the operation even in the face of errors. This is the same as the tune2fs @-f option.
maxmountcount
Set the number of mounts after which the filesystem is checked by e2fsck(8). If this is @0 then the number of
mounts is disregarded. This is the same as the tune2fs @-c option.
mountcount
Set the number of times the filesystem has been mounted. This is the same as the tune2fs @-C option.
errorbehavior
Change the behavior of the kernel code when errors are detected. Possible values currently are: continue
, remount
-ro, panic
. In practice these options don't really make any difference, particularly for write
errors.
This is the same as the tune2fs @-e option.
group
Set the group which can use reserved filesystem blocks. This is the same as the tune2fs @-g option except that it can
only be specified as a number.
intervalbetweenchecks
Adjust the maximal time between two filesystem checks (in seconds). If the option is passed as @0 then
time-dependent checking is disabled.
This is the same as the tune2fs @-i option.
reservedblockspercentage
Set the percentage of the filesystem which may only be allocated by privileged processes. This is
the same as the tune2fs @-m option.
lastmounteddirectory
Set the last mounted directory. This is the same as the tune2fs @-M option.
reservedblockscount
Set the number of reserved filesystem blocks. This is the same as the tune2fs @-r option. user
Set the user who can use the reserved filesystem blocks. This is the same as the tune2fs @-u option except that it can only be
specified as a number.
To get the current values of filesystem parameters, see tune2fs_l. For precise details of how tune2fs works, see the tune2fs(8) man page.
this |
A GuestfsSession object |
optargs |
a GuestfsTune2FS containing optional arguments |
true on success, false on error |