[ Version ( since = "1.0.16" ) ]
public int32 fsck (string fstype, string device) throws Error
run the filesystem checker
This runs the filesystem checker (fsck) on device
which should have filesystem type fstype
.
The returned integer is the status. See fsck(8) for the list of status codes from fsck
.
Notes:
* Multiple status codes can be summed together.
* A non-zero return code can mean "success", for example if errors have been corrected on the filesystem.
* Checking or repairing NTFS volumes is not supported (by linux-ntfs).
This command is entirely equivalent to running "fsck -a -t fstype device".
this |
A GuestfsSession object |
the returned value, or -1 on error |