xfs_repair


Description:

[ Version ( since = "1.19.36" ) ]
public int32 xfs_repair (string device, XfsRepair? optargs) throws Error

repair an XFS filesystem

Repair corrupt or damaged XFS filesystem on device.

The filesystem is specified using the device argument which should be the device name of the disk partition or volume containing the filesystem. If given the name of a block device, xfs_repair will attempt to find the raw device associated with the specified block device and will use the raw device instead.

Regardless, the filesystem to be repaired must be unmounted, otherwise, the resulting filesystem may be inconsistent or corrupt.

The returned status indicates whether filesystem corruption was detected (returns @1) or was not detected (returns @0).

This function depends on the feature "xfs". See also feature_available .

Parameters:

this

A GuestfsSession object

optargs

a GuestfsXfsRepair containing optional arguments

Returns:

the returned value, or -1 on error




2022 vala-language.org