From: Richard W.M. Jones Date: Tue, 7 Dec 2010 22:15:45 +0000 (+0000) Subject: docs: Note that guestfs_sync is no longer necessary. X-Git-Tag: 1.7.21~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=917c3520c7d6a2f3f9f670e42e0875aa40579a30;p=libguestfs.git docs: Note that guestfs_sync is no longer necessary. --- diff --git a/src/guestfs.pod b/src/guestfs.pod index 7cb05a6..1376e52 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);