[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <460B7B1D.2060708@slax.org>
Date: Thu, 29 Mar 2007 10:38:53 +0200
From: Tomas M <tomas@...x.org>
To: Jan Engelhardt <jengelh@...ux01.gwdg.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] max_loop limit, loop.c final working version
This is a diff from Ken Chen, who sent it to me a week ago and received
the claimed prize $256. I think it's partially based on Jan's code,
while if fixes the bug Jan mentioned (as far as I know).
It does the following:
- allocate loop dynamically on the fly
- allocate one more (spare) loop each time,
so losetup and mount tools can work correctly
- doesn't need any module parameters
Unfortunately 'mount' and 'losetup' binaries are hardcoded to stop
searching for free loop device after the minor num 255, so one have to
use a workaround in order to use more loops with 'mount':
$ losetup /dev/loop1000 file
$ mount /dev/loop1000 /mntpnt
I hope these binaries will be fixed soon.
Tomas M
slax.org
View attachment "loop.c.diff" of type "text/x-patch" (7611 bytes)
Powered by blists - more mailing lists