X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=perl%2Flib%2FSys%2FGuestfs.pm;h=5b87b27e80744e198ca3e0351bde5f495093d6ef;hb=0703248d233744047515418893dac05ce013a642;hp=90384da8a4b135f87562632bfa1acd137b2a192d;hpb=b03ee3675bed8d739ae722ed8c030ae02b3cb0ed;p=libguestfs.git diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 90384da..5b87b27 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -468,6 +468,19 @@ The exact command which runs is C. Note in particular that the filename is not prepended to the output (the C<-b> option). +=item $status = $h->fsck ($fstype, $device); + +This runs the filesystem checker (fsck) on C which +should have filesystem type C. + +The returned integer is the status. See L for the +list of status codes from C, and note that multiple +status codes can be summed together. + +It is entirely equivalent to running C. +Note that checking or repairing NTFS volumes is not supported +(by linux-ntfs). + =item $autosync = $h->get_autosync (); Get the autosync flag. @@ -758,9 +771,13 @@ Remove the single directory C. =item $h->set_autosync ($autosync); If C is true, this enables autosync. Libguestfs will make a -best effort attempt to run C<$h-Esync> when the handle is closed +best effort attempt to run C<$h-Eumount_all> followed by +C<$h-Esync> when the handle is closed (also if the program exits without closing handles). +This is disabled by default (except in guestfish where it is +enabled by default). + =item $h->set_busy (); This sets the state to C. This is only used when implementing