summaryrefslogtreecommitdiffstats
path: root/ruby
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-03 14:36:45 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-07 11:26:41 +0100
commitfe315f634c7db0f30fc828421258e89f6dded346 (patch)
treeed73f9c5ddede02b7131c421e2fa8961fc6f1206 /ruby
parent7fc03e9a45bbf87298dd98e7eb7db649e0dba4ff (diff)
downloadlibguestfs-fe315f634c7db0f30fc828421258e89f6dded346.tar.gz
libguestfs-fe315f634c7db0f30fc828421258e89f6dded346.tar.xz
libguestfs-fe315f634c7db0f30fc828421258e89f6dded346.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 'ruby')
-rw-r--r--ruby/examples/create_disk.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/ruby/examples/create_disk.rb b/ruby/examples/create_disk.rb
index 16871cb6..4e42cf6a 100644
--- a/ruby/examples/create_disk.rb
+++ b/ruby/examples/create_disk.rb
@@ -14,10 +14,6 @@ File.open(output, "w") {
# 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")
@@ -58,7 +54,4 @@ g.mkdir("/foo")
# 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.
g.close()