On 11/25/2015 02:32 PM, Maxim Perevedentsev wrote:
Unfortunately, I failed to write a test, since the main usage is something like+ { defaults with + name = "part_expand_gpt"; added = (1, 31, 29); + style = RErr, [Device "device"], []; + proc_nr = Some 459; + optional = Some "gdisk"; + shortdesc = "move backup GPT header to the end of the disk"; + longdesc = "\ +Move backup GPT data structures to the end of the disk. +This is useful in case of in-place image expand +since disk space after backup GPT header is not usable. +This is equivalent to C<sgdisk -e>. + +See also L<sgdisk(8)>." }; +
> qemu-img create disk 200M > guestfish -a disk run : part-disk /dev/sda gpt > qemu-img resize disk 300M > guestfish -a disk run : part-expand-gpt /dev/sda -> success > guestfish -a disk run : part-expand-gpt /dev/sda1 -> fail Should I add it as shell script to /tests/daemon ? -- Your sincerely, Maxim Perevedentsev _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
