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 /src/guestfs.c | |
parent | e4733575efff31742444b180cdcfbc2504b144c8 (diff) | |
download | libguestfs-f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8.tar.gz libguestfs-f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8.tar.xz libguestfs-f7e6ffa8a82f8a7a214a47ff32f46d9e893902d8.zip |
Autosync now runs umount-all; sync
Diffstat (limited to 'src/guestfs.c')
-rw-r--r-- | src/guestfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guestfs.c b/src/guestfs.c index 05c02f3f..c2d58e82 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -267,8 +267,10 @@ guestfs_close (guestfs_h *g) fprintf (stderr, "closing guestfs handle %p (state %d)\n", g, g->state); /* Try to sync if autosync flag is set. */ - if (g->autosync && g->state == READY) + if (g->autosync && g->state == READY) { + guestfs_umount_all (g); guestfs_sync (g); + } /* Remove any handlers that might be called back before we kill the * subprocess. |