[Libguestfs] [PATCH nbdkit v3 3/3] Add partitioning plugin.
Eric Blake
eblake at redhat.com
Wed Sep 19 14:30:45 UTC 2018
On 9/17/18 4:27 PM, Richard W.M. Jones wrote:
> Create a partitioned virtual drive from a list of one or more files
> each containing single partitions. The plugin concatenates the files
> together and generates a virtual partition table so that NBD clients
> see a single partitioned disk.
>
> For example:
>
> nbdkit partitioning boot.img swap.img root.img
>
> creates a virtual disk with 3 partitions.
> ---
> +++ b/plugins/partitioning/nbdkit-partitioning-plugin.pod
> +If the underlying file is a multiple of 512 bytes then this is a
> +no-op:
> +
> + nbdkit --filter=partition partitioning file --partition=1
Filter options are not specified with --. I've pushed the obvious fix.
Maybe they should, though. Is it worth teaching nbdkit that any
unrecognized option that resembles --key=value should first undergo an
attempted translation into 'key=value' passed on to the filter/plugin
.config, before declaring it as an unknown option?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
More information about the Libguestfs
mailing list