Re: [Libguestfs] [p2v PATCH] disks.c: skip SCSI floppy drives with no disk inserted

2022-11-15 Thread Laszlo Ersek
On 11/15/22 11:35, Richard W.M. Jones wrote: > On Fri, Nov 11, 2022 at 03:24:18PM +0100, Laszlo Ersek wrote: >> Hi Rich, >> >> On 11/09/22 14:52, Laszlo Ersek wrote: >>> A SCSI floppy drive with no disk inserted looks like a normal /dev/sd* >>> node, but causes the nbdkit file plugin to fail with

Re: [Libguestfs] [p2v PATCH] disks.c: skip SCSI floppy drives with no disk inserted

2022-11-15 Thread Richard W.M. Jones
On Fri, Nov 11, 2022 at 03:24:18PM +0100, Laszlo Ersek wrote: > Hi Rich, > > On 11/09/22 14:52, Laszlo Ersek wrote: > > A SCSI floppy drive with no disk inserted looks like a normal /dev/sd* > > node, but causes the nbdkit file plugin to fail with ENOMEDIUM. Filter out > > such devices altogether

Re: [Libguestfs] [p2v PATCH] disks.c: skip SCSI floppy drives with no disk inserted

2022-11-11 Thread Laszlo Ersek
Hi Rich, On 11/09/22 14:52, Laszlo Ersek wrote: > A SCSI floppy drive with no disk inserted looks like a normal /dev/sd* > node, but causes the nbdkit file plugin to fail with ENOMEDIUM. Filter out > such devices altogether -- unlike CD-ROMs (for which we create a device > model in the target,

[Libguestfs] [p2v PATCH] disks.c: skip SCSI floppy drives with no disk inserted

2022-11-09 Thread Laszlo Ersek
A SCSI floppy drive with no disk inserted looks like a normal /dev/sd* node, but causes the nbdkit file plugin to fail with ENOMEDIUM. Filter out such devices altogether -- unlike CD-ROMs (for which we create a device model in the target, albeit with no medium inserted), empty floppies should not