[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Max number of loop devices OR "efficient search of Debian documentation"



On Sun, May 18, 2014 at 10:20 AM, The Wanderer <wanderer@fastmail.fm> wrote:
> On 05/18/2014 09:52 AM, Pascal Hambourg wrote:
>> Tom H a écrit :
>>>
>>> If you have loop compiled in to the kernel, as I do below, you can
>>> only change the number of loop devices at boot by using
>>> "max_loop=<number_of_loop_devices" on the kernel cmdline.
>>>
>>> But if loop is compiled as module
>>>
>>> # rmmod loop
>>> # modprobe loop max_loop=<number_loop_devices_minus_one>
>>
>> One more general piece of information about module parameters : some
>> may be modified on the fly by writing into
>> /sys/module/<module>/parameters/<parameter>. But it appears that
>> /sys/module/loop/parameters/max_loop is read only.
>
> What does 'modprobe -r loop' do to any active loop devices?
>
> I would expect it to either error out without removing the module if any
> loop devices are in use, or automatically shut the loop devices down.

Correct, the call to modprobe will fail if "loop.ko" is in use.


Reply to: