Re: [PATCH] Allow auto-destruction of loop devices.

2007-10-30 Thread Andrew Morton
On Tue, 30 Oct 2007 16:12:51 -0400 David Woodhouse <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-30 at 13:01 -0700, Andrew Morton wrote: > > Why do we want to do this? > > In general, so that we can automatically allocate loop devices (as with > losetup -f) and have them disappear when we're done

Re: [PATCH] Allow auto-destruction of loop devices.

2007-10-30 Thread David Woodhouse
On Tue, 2007-10-30 at 13:01 -0700, Andrew Morton wrote: > Why do we want to do this? In general, so that we can automatically allocate loop devices (as with losetup -f) and have them disappear when we're done with them. In particular, right now, so that we can stop relying on the hackish special-

Re: [PATCH] Allow auto-destruction of loop devices.

2007-10-30 Thread Jan Engelhardt
On Oct 30 2007 13:01, Andrew Morton wrote: >On Sun, 28 Oct 2007 19:08:31 -0400 >David Woodhouse <[EMAIL PROTECTED]> wrote: > >> This allows a flag to be set on loop devices so that when they are >> closed for the last time, they'll self-destruct. >> > >Why do we want to do this? Off the top of m

Re: [PATCH] Allow auto-destruction of loop devices.

2007-10-30 Thread Andrew Morton
On Sun, 28 Oct 2007 19:08:31 -0400 David Woodhouse <[EMAIL PROTECTED]> wrote: > This allows a flag to be set on loop devices so that when they are > closed for the last time, they'll self-destruct. > Why do we want to do this? > > diff --git a/drivers/block/loop.c b/drivers/block/loop.c > inde