e2fsck


Description:

[ Version ( since = "1.15.17" ) ]
public bool e2fsck (string device, E2fsck? optargs) throws Error

check an ext2/ext3 filesystem

This runs the ext2/ext3 filesystem checker on device. It can take the following optional arguments:

correct Automatically repair the file system. This option will cause e2fsck to automatically fix any filesystem problems that can be safely fixed without human intervention.

This option may not be specified at the same time as the forceall option.

forceall Assume an answer of ‘yes’ to all questions; allows e2fsck to be used non-interactively.

This option may not be specified at the same time as the correct option.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsE2fsck containing optional arguments

Returns:

true on success, false on error