[Libguestfs] [PATCH nbdkit v2 5/6] New plugin: ones

Eric Blake eblake at redhat.com
Wed May 17 21:41:47 UTC 2023


On Wed, May 17, 2023 at 11:06:58AM +0100, Richard W.M. Jones wrote:
> Returns a fully allocated disk containing all 0xff (all ones), or
> another byte of your choice.
> ---
> +
> +=item B<byte=>N
> +
> +Set the repeating byte to C<N>.  The default is C<0xff> (all ones).
> +
> +Instead of C<byte=0> it is more efficient to use
> +L<nbdkit-null-plugin(1)>.

Good catch.  On v1, I suggested nbdkit-zero-plugin, but re-reading the
difference between those two, I see you got the one I meant.  (For the
casual reader: zero-plugin has size zero, while the null plugin has
non-zero size that reads as zero)

Reviewed-by: Eric Blake <eblake at redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


More information about the Libguestfs mailing list