From: Bill Davidsen <davidsen@tmr.com>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Ken Chen <kenchen@google.com>, Tomas M <tomas@slax.org>,
linux-kernel@vger.kernel.org
Subject: Re: [patch] remove artificial software max_loop limit
Date: Fri, 06 Apr 2007 16:33:32 -0400 [thread overview]
Message-ID: <4616AE9C.9060400@tmr.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0704012106010.16977@yvahk01.tjqt.qr>
Jan Engelhardt wrote:
> On Apr 1 2007 11:10, Ken Chen wrote:
>> On 4/1/07, Tomas M <tomas@slax.org> wrote:
>>
>>> I believe that IF you _really_ need to preserve the max_loop module
>>> parameter, then the parameter should _not_ be ignored, rather it
>>> should have the same function like before - to limit the loop driver
>>> so if you use max_loop=10 for example, it should not allow loop.c to
>>> create more than 10 loops.
>> Blame on the dual meaning of max_loop that it uses currently: to
>> initialize a set of loop devices and as a side effect, it also sets
>> the upper limit. People are complaining about the former constrain,
>> isn't it? Does anyone uses the 2nd meaning of upper limit?
>
> Who cares if the user specifies max_loop=8 but still is able to open up
> /dev/loop8, loop9, etc.? max_loop=X basically meant (at least to me)
> "have at least X" loops ready.
>
You have just come up with a really good reason not to do unlimited
loops. With the current limit people can count on a script mounting
files, or similar, to neither loop for a VERY long time or to eat their
memory. Whatever you think of programs without limit checking, this
falls in the range of expecting an unsigned char to have a certain upper
bound, and argues that the default limit should be the current limit and
that setting a lower bound should work as a real and enforced limit.
If a new capability is being added, and I think it's a great one, then
people using the capability should be the ones explicitly doing
something different. Plauger's law of least astonishment.
--
Bill Davidsen <davidsen@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
next prev parent reply other threads:[~2007-04-06 20:32 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 7:53 [patch] remove artificial software max_loop limit Ken Chen
2007-03-30 8:48 ` Ken Chen
2007-03-30 9:07 ` Jan Engelhardt
2007-03-30 9:25 ` Ken Chen
2007-03-30 16:16 ` Jan Engelhardt
2007-03-30 21:15 ` Andrew Morton
2007-03-30 22:06 ` Ken Chen
2007-03-30 22:50 ` Andrew Morton
2007-03-31 17:07 ` Greg KH
2007-03-31 17:41 ` Andrew Morton
2007-04-01 4:16 ` Ken Chen
2007-04-04 10:31 ` Tomas M
2007-04-04 18:47 ` Andrew Morton
2007-04-01 16:53 ` Tomas M
2007-04-01 16:57 ` Tomas M
2007-04-01 18:10 ` Ken Chen
2007-04-01 19:06 ` Jan Engelhardt
2007-04-06 20:33 ` Bill Davidsen [this message]
2007-04-07 16:18 ` Valdis.Kletnieks
2007-04-07 16:34 ` Bill Davidsen
2007-03-30 21:46 ` Andrew Morton
2007-03-30 21:52 ` Jan Engelhardt
-- strict thread matches above, loose matches on Subject: below --
2007-04-01 9:16 devzero
2007-04-01 10:53 devzero
2007-04-01 18:03 ` Ken Chen
2007-04-01 19:00 ` Jeff Dike
2007-04-01 18:36 devzero
2007-04-01 18:43 ` Kyle Moffett
2007-04-01 18:54 devzero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4616AE9C.9060400@tmr.com \
--to=davidsen@tmr.com \
--cc=jengelh@linux01.gwdg.de \
--cc=kenchen@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tomas@slax.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.