summaryrefslogtreecommitdiffstats
path: root/ruby/examples/create_disk.rb
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-08-18 22:08:29 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-18 22:08:29 +0100
commitd67e6ea75dde6309ce4c6162a4a0429ab8d6709b (patch)
treee944fdbf86577e37759686d952bdbb337ff99e6d /ruby/examples/create_disk.rb
parent781d72f55897b1ed923c795a0132241f53f6c6eb (diff)
downloadlibguestfs-d67e6ea75dde6309ce4c6162a4a0429ab8d6709b.tar.gz
libguestfs-d67e6ea75dde6309ce4c6162a4a0429ab8d6709b.tar.xz
libguestfs-d67e6ea75dde6309ce4c6162a4a0429ab8d6709b.zip
Replace mount-options with mount where appropriate.
Since our minimum supported version is now 1.16 and mount was fixed in 1.13.16, it is now safe to replace mount-options + empty options with mount wherever it occurs.
Diffstat (limited to 'ruby/examples/create_disk.rb')
-rw-r--r--ruby/examples/create_disk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/examples/create_disk.rb b/ruby/examples/create_disk.rb
index 32fb1171..fba85ff7 100644
--- a/ruby/examples/create_disk.rb
+++ b/ruby/examples/create_disk.rb
@@ -42,7 +42,7 @@ end
g.mkfs("ext4", partitions[0])
# Now mount the filesystem so that we can add files.
-g.mount_options("", partitions[0], "/")
+g.mount(partitions[0], "/")
# Create some files and directories.
g.touch("/empty")