set_loop tries to create 1048575 loop devices
Lauri Kasanen
curaga at operamail.com
Mon Jan 20 21:14:00 UTC 2014
> > I just had mount create a large number of loop devices before I
> > interrupted it.
> > The reason is that the loop module is not loaded in the kernel, but it
> > would be better to have an error message instead.
> > ...
> >
> > I don't know whether there are other reasons why open /dev/loop might
> > return ENXIO, but if not, then set_loop should abort when it receives
> > that error.
>
> According to libbb/loop.c, it also returns ENXIO to mean "this loop is
> free". So can't exactly abort for that.
>
> I recommend you disable ENABLE_FEATURE_MOUNT_LOOP_CREATE if you don't
> want the devices created.
My mistake, the ENXIO was from ioctl not open. Checking for it in open
should be ok.
- Lauri
--
http://www.fastmail.fm - IMAP accessible web-mail
More information about the busybox
mailing list