On 5/21/07, Ken Chen <[email protected]> wrote:
yes and no. in that commit, I automatically create n+1 device when loop device n is created, allergically was tested to be fine with casual usage of "losetup" and "mount -o loop". However, there is a bug in that commit when loop.c was compiled as a module. And when Al fixed it, he also removed that magic "n+1" trick. Nevertheless, yes, I'm guilty of introducing the new behavior.
The easiest way is to reinstate max_loop and create "max_loop" device up front at module load time. However, that will lose all the "fancy on-demand device instantiation feature". So I propose we do the following: 1. have the module honor "max_loop" parameter and create that many device upfront on module load (max_loop will also be a hard max) iff user specify the parameter. 2. if max_loop is not specified, default create 8 loop device. User can extent more loop device by create device node themselves and have kernel automatically instantiate loop device on-demand. Is this acceptable? Patch in a bit. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: "Ken Chen" <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Linus Torvalds <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Uwe Bugla <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- References:
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Ray Lee <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Andrey Borzenkov <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: "Ray Lee" <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Al Viro <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: "Ray Lee" <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: "Kay Sievers" <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: "Ray Lee" <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Kay Sievers <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: Linus Torvalds <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- From: "Ken Chen" <[email protected]>
- Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- Prev by Date: Re: 2.6.22-rc1-mm1
- Next by Date: Re: [PATCH]serial: make early_uart to use early_prarm instead of console_initcall
- Previous by thread: Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- Next by thread: Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
- Index(es):