[PATCH] volume_id: volume_id_get_buffer with small FSes
Alyssa Ross
hi at alyssa.is
Mon May 16 10:03:20 UTC 2022
On Mon, May 16, 2022 at 08:23:37AM +0300, Lauri Kasanen wrote:
> On Sun, 15 May 2022 17:18:47 +0000
> Alyssa Ross <hi at alyssa.is> wrote:
>
> > I tested both the cases mentioned in the comments — an empty floppy
> > drive, and an unused loop device. Reading from an empty floppy drive
> > is ENXIO, and reading from an unused loop device returns 0, so it
> > should be fine to drop the minimum length, and be happy with any read
> > as long as it returns at least one byte.
>
> > - * accesses. Rationale:
> > - * users complained of slow blkid due to empty floppy drives.
>
> But is it slow like the comment said? Ie. does this patch cause a 1-2s
> delay due to the floppy drive spinning up?
How would it? In the case of a floppy or loop device, the operations
that are happening are exactly the same. Both before and after my
patch, it would try to seek or read, that would fail, and then it would
set id->error and return.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20220516/70ef378d/attachment-0001.asc>
More information about the busybox
mailing list