diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/examples/CreateDisk.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/java/examples/CreateDisk.java b/java/examples/CreateDisk.java index 4742b5a1..41f8739b 100644 --- a/java/examples/CreateDisk.java +++ b/java/examples/CreateDisk.java @@ -22,10 +22,6 @@ public class CreateDisk // Set the trace flag so that we can see each libguestfs call. g.set_trace (true); - // Set the autosync flag so that the disk will be synchronized - // automatically when the libguestfs handle is closed. - g.set_autosync (true); - // Attach the disk image to libguestfs. Map<String, Object> optargs = new HashMap<String, Object>() { { @@ -70,10 +66,6 @@ public class CreateDisk // the disk image. g.upload ("/etc/resolv.conf", "/foo/resolv.conf"); - // Because 'autosync' was set (above) we can just close the handle - // and the disk contents will be synchronized. You can also do - // this manually by calling g#umount_all and g#sync. - // // Note also that handles are automatically closed if they are // reaped by the garbage collector. You only need to call close // if you want to close the handle right away. |