X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=perl%2Fexamples%2Flvs.pl;h=1755c899d847b518d423615fd6873f819e8dc097;hb=14490c3e1aac61c6ac90f28828896683f64f0dc9;hp=152db08824698b75fe5608271286f99f74a71dea;hpb=9908e03e922b670437bcd89b6873f9ebc914567e;p=libguestfs.git diff --git a/perl/examples/lvs.pl b/perl/examples/lvs.pl index 152db08..1755c89 100755 --- a/perl/examples/lvs.pl +++ b/perl/examples/lvs.pl @@ -10,11 +10,10 @@ die "Usage: lvs.pl guest.img\n" if @ARGV != 1 || ! -f $ARGV[0]; print "Creating the libguestfs handle\n"; my $h = Sys::Guestfs->new (); -$h->add_drive ($ARGV[0]); +$h->add_drive_opts ($ARGV[0], format => "raw"); print "Launching, this can take a few seconds\n"; $h->launch (); -$h->wait_ready (); print "Looking for PVs on the disk image\n"; my @pvs = $h->pvs ();