[Libguestfs] [PATCH] daemon: parted: Always use -s option even with -m.

Richard W.M. Jones rjones at redhat.com
Wed Jun 17 18:50:11 UTC 2015


On Wed, Jun 17, 2015 at 05:23:53PM +0100, Richard W.M. Jones wrote:
> See: https://bugzilla.redhat.com/show_bug.cgi?id=1232241#c3
> ---
>  daemon/parted.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/daemon/parted.c b/daemon/parted.c
> index a36e4e7..59760b4 100644
> --- a/daemon/parted.c
> +++ b/daemon/parted.c
> @@ -356,7 +356,7 @@ print_partition_table (const char *device,
>    int r;
>  
>    if (PARTED_OPT_HAS_M == parted_has_m_opt)
> -    r = command (&out, &err, str_parted, "-m", "--", device,
> +    r = command (&out, &err, str_parted, "-m", "-s", "--", device,
>                   "unit", "b",
>                   "print", NULL);

This breaks virt-alignment-scan.  Not sure why yet.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html




More information about the Libguestfs mailing list