[Libguestfs] [PATCH v2] launch: Error if you try to launch with too many drives.

Pino Toscano ptoscano at redhat.com
Fri May 5 11:44:57 UTC 2017


On Tuesday, 2 May 2017 15:35:53 CEST Richard W.M. Jones wrote:
> In particular the virt-rescue --scratch option makes it very easy to
> add huge numbers of drives.  Since the per-backend max_disks limit was
> never checked anywhere you could get peculiar failures.  Now you'll
> get a clear error message:
> 
> $ virt-rescue --scratch=256
> libguestfs: error: too many drives have been added, the current backend only supports 255 drives
> ---

Not wrong per-se, although IMHO it could just query
g->backend_ops->max_disks with no need to go throught the
tracing/wrapping API stuff.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170505/4a036824/attachment.sig>


More information about the Libguestfs mailing list