set_loop tries to create 1048575 loop devices

Lauri Kasanen curaga at operamail.com
Mon Jan 20 21:12:16 UTC 2014



On Mon, Jan 20, 2014, at 18:52, Ralf Friedl wrote:
> Hi
> 
> 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.

- Lauri

-- 
http://www.fastmail.fm - Same, same, but different...



More information about the busybox mailing list