On 10 October 2010 14:24, Zenaan Harkness <[email protected]> wrote:
> On Sun, Oct 10, 2010 at 2:13 PM, Adrian Chadd <[email protected]> wrote:
>> The horrible, O(n) way is to just to loop over 0 .. n, see if it doesn't
>> exist, if it doesn't then create and use it.
>>
>> It's slow, it's racy (ie, don't run the script without locking :-) but
>> it's a traditional UNIX way of doing things.
>
> Think I'll avoid that on principle. Providing a minor # at all seems
> strange to me. Like Linux should do it. Why do I want or need to know
> about these MINOR #s anyway?! All I want is an lo dev; far away from
> this cold nightmare (with apologies to Frederick Loewe).

You need the minor number so the driver knows which instance of the device.

Anyway - just remember that there is a set limit on the maximum number
of loop devices which can be created. The default is usually fairly
low, probably depends on the specific distro, and can be set to a
different limit as a parameter to the module.

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to