diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-03 14:36:45 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-06 17:36:30 +0100 |
commit | 352219c718c0705661e48f1fd3809ed47cde1555 (patch) | |
tree | 1e7ce97e039655a5daa715ce21a655bc21d1b3b1 /perl/examples/create_disk.pl | |
parent | d089d67ca383e2ec4e63e6ee1af72a8e3274d58a (diff) | |
download | libguestfs-352219c718c0705661e48f1fd3809ed47cde1555.tar.gz libguestfs-352219c718c0705661e48f1fd3809ed47cde1555.tar.xz libguestfs-352219c718c0705661e48f1fd3809ed47cde1555.zip |
examples: In create_disk example, don't call set_autosync.
This is now set by default in all supported versions of libguestfs.
It's just confusing if the examples refer to it.
(cherry picked from commit 917550a117904ec1a06b77a7870a147014d71adb)
Diffstat (limited to 'perl/examples/create_disk.pl')
-rwxr-xr-x | perl/examples/create_disk.pl | 7 |
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 |