summaryrefslogtreecommitdiffstats
path: root/perl/examples/create_disk.pl
diff options
context:
space:
mode:
Diffstat (limited to 'perl/examples/create_disk.pl')
-rwxr-xr-xperl/examples/create_disk.pl7
1 files changed, 0 insertions, 7 deletions
diff --git a/perl/examples/create_disk.pl b/perl/examples/create_disk.pl
index 5a81663f..49538a5f 100755
--- a/perl/examples/create_disk.pl
+++ b/perl/examples/create_disk.pl
@@ -17,10 +17,6 @@ close FILE or die "$output: $!";
# Set the trace flag so that we can see each libguestfs call.
$g->set_trace (1);
-# Set the autosync flag so that the disk will be synchronized
-# automatically when the libguestfs handle is closed.
-$g->set_autosync (1);
-
# Attach the disk image to libguestfs.
$g->add_drive_opts ($output, format => "raw", readonly => 0);
@@ -61,7 +57,4 @@ $g->mkdir ("/foo");
# the disk image.
$g->upload ("/etc/resolv.conf", "/foo/resolv.conf");
-# Because 'autosync' was set (above) we can just exit here
-# and the disk contents will be synchronized. You can also do
-# this manually by calling $g->umount_all and $g->sync.
exit 0