git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new internal-autosync API to perform autosync.
[libguestfs.git]
/
src
/
guestfs.c
diff --git
a/src/guestfs.c
b/src/guestfs.c
index
488b658
..
79fc5bf
100644
(file)
--- a/
src/guestfs.c
+++ b/
src/guestfs.c
@@
-189,10
+189,8
@@
guestfs_close (guestfs_h *g)
guestfs___free_inspect_info (g);
/* Try to sync if autosync flag is set. */
guestfs___free_inspect_info (g);
/* Try to sync if autosync flag is set. */
- if (g->autosync && g->state == READY) {
- guestfs_umount_all (g);
- guestfs_sync (g);
- }
+ if (g->autosync && g->state == READY)
+ guestfs_internal_autosync (g);
/* Remove any handlers that might be called back before we kill the
* subprocess.
/* Remove any handlers that might be called back before we kill the
* subprocess.