diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-30 17:34:23 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-30 17:34:23 +0100 |
commit | f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8 (patch) | |
tree | c0026038f845c5ec934d89aa3be5c3f1c307e305 /perl/lib/Sys | |
parent | e4733575efff31742444b180cdcfbc2504b144c8 (diff) | |
download | libguestfs-f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8.tar.gz libguestfs-f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8.tar.xz libguestfs-f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8.zip |
Autosync now runs umount-all; sync
Diffstat (limited to 'perl/lib/Sys')
-rw-r--r-- | perl/lib/Sys/Guestfs.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 90384da8..efc28457 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -758,9 +758,13 @@ Remove the single directory C<path>. =item $h->set_autosync ($autosync); If C<autosync> is true, this enables autosync. Libguestfs will make a -best effort attempt to run C<$h-E<gt>sync> when the handle is closed +best effort attempt to run C<$h-E<gt>umount_all> followed by +C<$h-E<gt>sync> 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<BUSY>. This is only used when implementing |