summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-07 22:15:45 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-07 22:15:45 +0000
commit917c3520c7d6a2f3f9f670e42e0875aa40579a30 (patch)
tree00cb8a00de7f91a7ab5fbb6b83d9c98451445460
parent4b8f70d46dcfed1489c97f822e263b8615f21ea0 (diff)
downloadlibguestfs-917c3520c7d6a2f3f9f670e42e0875aa40579a30.tar.gz
libguestfs-917c3520c7d6a2f3f9f670e42e0875aa40579a30.tar.xz
libguestfs-917c3520c7d6a2f3f9f670e42e0875aa40579a30.zip
docs: Note that guestfs_sync is no longer necessary.
-rw-r--r--src/guestfs.pod10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/guestfs.pod b/src/guestfs.pod
index 7cb05a6c..1376e520 100644
--- a/src/guestfs.pod
+++ b/src/guestfs.pod
@@ -14,7 +14,6 @@ guestfs - Library for accessing and modifying virtual machine images
guestfs_mount (g, "/dev/sda1", "/");
guestfs_touch (g, "/hello");
guestfs_umount (g, "/");
- guestfs_sync (g);
guestfs_close (g);
cc prog.c -o prog -lguestfs
@@ -100,11 +99,10 @@ this:
* disk image.
*/
guestfs_touch (g, "/hello");
-
- /* You only need to call guestfs_sync if you have made
- * changes to the guest image. (But if you've made changes
- * then you *must* sync). See also: guestfs_umount and
- * guestfs_umount_all calls.
+
+ /* This is only needed for libguestfs < 1.5.24. Since then
+ * it is done automatically when you close the handle. See
+ * discussion of autosync in this page.
*/
guestfs_sync (g);