[Libguestfs] [PATCH nbdkit 4/5] New plugin: ones

Eric Blake eblake at redhat.com
Tue May 16 12:41:53 UTC 2023


On Tue, May 16, 2023 at 01:12:18PM +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).

Maybe worth mentioning that the zero plugin is more efficient than
'ones byte=0'.

Otherwise looks correct, and while it probably won't be the most
frequently used plugin, I can see its utility as being more efficient
than the corresponding use of data plugin in read-only mode with a
disk pre-initialized to a repetition of a given byte.

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


More information about the Libguestfs mailing list