summaryrefslogtreecommitdiffstats
path: root/perl/examples/create_disk.pl
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-08-02 17:21:47 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-02 17:21:47 +0100
commit863168467f14e33407c4bf9c7f790bcd4911aea3 (patch)
tree85742a492a5fda865939294fa3d998b46cf37783 /perl/examples/create_disk.pl
parentb3d0cc0588845d3cad3fd67943d93e1bd87b1700 (diff)
downloadlibguestfs-863168467f14e33407c4bf9c7f790bcd4911aea3.tar.gz
libguestfs-863168467f14e33407c4bf9c7f790bcd4911aea3.tar.xz
libguestfs-863168467f14e33407c4bf9c7f790bcd4911aea3.zip
examples: Use add_drive_opts function in examples.
In libguestfs 1.20, you will be able to use 'add_drive' instead of 'add_drive_opts' (except in the C bindings). However until libguestfs 1.20 is the minimum stable version people will still be using old versions where you have to use 'add_drive_opts'. This makes the examples confusing. Therefore continue to use 'add_drive_opts' in the examples for now.
Diffstat (limited to 'perl/examples/create_disk.pl')
-rwxr-xr-xperl/examples/create_disk.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/examples/create_disk.pl b/perl/examples/create_disk.pl
index 76b51de5..11b91469 100755
--- a/perl/examples/create_disk.pl
+++ b/perl/examples/create_disk.pl
@@ -18,7 +18,7 @@ close FILE or die "$output: $!";
$g->set_trace (1);
# Attach the disk image to libguestfs.
-$g->add_drive ($output, format => "raw", readonly => 0);
+$g->add_drive_opts ($output, format => "raw", readonly => 0);
# Run the libguestfs back-end.
$g->launch ();