search for: disk_gpt

Displaying 4 results from an estimated 4 matches for "disk_gpt".

Did you mean: disk&gt
2019 Apr 15
1
[PATCH] daemon: drop error message check in do_part_expand_gpt
...ctors <= 34; - # Negative tests. + # Negative test. eval { $g->part_expand_gpt ("/dev/sdb") }; die unless $@; - eval { $g->part_expand_gpt ("/dev/sda1") }; - die unless $@; + + $g->close (); + + # Disk shrink test + die if system ("qemu-img resize --shrink disk_gpt.img 50M &>/dev/null"); + + $g = Sys::Guestfs->new (); + + $g->add_drive ("disk_gpt.img", format => "qcow2"); + $g->launch (); + + die if $g->part_expand_gpt ("/dev/sda"); + + my $output = $g->debug ("sh", ["sgdisk", &qu...
2015 Dec 01
3
[PATCHv2] New API: part_expand_gpt.
...ot;, "qcow2", 50 * 1024 * 1024); + $g->add_drive ("disk_$_.img"); + } + + $g->launch (); + + $g->part_disk ("/dev/sda", "gpt"); + $g->part_disk ("/dev/sdb", "mbr"); + + $g->close (); + + die if system ("qemu-img resize disk_gpt.img 100M &>/dev/null"); + + $g = Sys::Guestfs->new (); + + foreach ("gpt", "mbr") { + $g->add_drive ("disk_$_.img"); + } + + $g->launch (); + die if $g->part_expand_gpt ("/dev/sda"); + + my $output = $g->debug ("sh", [&qu...
2015 Dec 22
0
Re: [PATCHv2] New API: part_expand_gpt.
...gt;add_drive ("disk_$_.img"); > + } > + > + $g->launch (); > + > + $g->part_disk ("/dev/sda", "gpt"); > + $g->part_disk ("/dev/sdb", "mbr"); > + > + $g->close (); > + > + die if system ("qemu-img resize disk_gpt.img 100M &>/dev/null"); > + > + $g = Sys::Guestfs->new (); > + > + foreach ("gpt", "mbr") { > + $g->add_drive ("disk_$_.img"); > + } > + > + $g->launch (); > + die if $g->part_expand_gpt ("/dev/sda"); > +...
2016 Jan 20
1
[PATCHv2] New API: part_expand_gpt.
...ot;, "qcow2", 50 * 1024 * 1024); + $g->add_drive ("disk_$_.img"); + } + + $g->launch (); + + $g->part_disk ("/dev/sda", "gpt"); + $g->part_disk ("/dev/sdb", "mbr"); + + $g->close (); + + die if system ("qemu-img resize disk_gpt.img 100M &>/dev/null"); + + $g = Sys::Guestfs->new (); + + foreach ("gpt", "mbr") { + $g->add_drive ("disk_$_.img"); + } + + $g->launch (); + die if $g->part_expand_gpt ("/dev/sda"); + + my $output = $g->debug ("sh", [&qu...