[Fedora-livecd-list] [PATCH 2/2] allow user specifiable number of loop devices

Douglas McClendon dmc.fedora at filteredperception.org
Sun Sep 23 10:31:00 UTC 2007


Jeremy recently committed a patch which changed the number of loop
devices created from 128 to 16.  I don't know if there was some
measurable performance reason for this or not.  I had always guessed
that the reason David chose such a large number originally was because
of the fact that unlike in a normal system, in a LiveOS system, a loop
device is used for the rootfs, and therefore the loop driver can never
be removed and readded with a larger number of devices if needed.

This patch adds an optional kernel commandline parameter
num_loopdevs=<int> which will cause that many loop devices to be created
instead of the default of 16.  This will be useful for people using the
livecd who need lots of loop devices, but doesn't interfere with
whatever reasons justified the lowering from 128 to 16.

If you want to add this functionality without the prior patch which
removed the while-wait, somthing like-

maxloopdev="/dev/loop\$((\$num_loopdevs - 1))"
while [ ! -b \$maxloopdev ] ; do
    sleep 1
done

should do the trick

-dmc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: livecd.2.userNumLoop.patch
Type: text/x-patch
Size: 841 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20070923/9fae8e57/attachment.bin>


More information about the Fedora-livecd-list mailing list