diff options
Diffstat (limited to 'erlang/examples/create_disk.erl')
-rwxr-xr-x | erlang/examples/create_disk.erl | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/erlang/examples/create_disk.erl b/erlang/examples/create_disk.erl index 231c3989..a0c90444 100755 --- a/erlang/examples/create_disk.erl +++ b/erlang/examples/create_disk.erl @@ -16,10 +16,6 @@ main(_) -> % Set the trace flag so that we can see each libguestfs call. ok = guestfs:set_trace(G, true), - % Set the autosync flag so that the disk will be synchronized - % automatically when the libguestfs handle is closed. - ok = guestfs:set_autosync(G, true), - % Attach the disk image to libguestfs. ok = guestfs:add_drive_opts(G, Output, [{format, "raw"}, {readonly, false}]), @@ -55,10 +51,6 @@ main(_) -> % the disk image. ok = guestfs:upload(G, "/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 guestfs:umount_all and guestfs: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. |