Re: [PATCH] loop file resizable

From: Akinobu Mita
Date: Tue Nov 18 2008 - 21:07:28 EST


2008/11/19 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>:
> On Mon, 17 Nov 2008 08:44:28 +0100
> Tomas M <tomas@xxxxxxxx> wrote:
>
>> The following patch against loop.c adds ability to 'resize' the loop device on the fly.
>> This may be practically very useful.
>>
>> One practical application is a loop file with XFS filesystem, already mounted:
>> You can easily enlarge the file (append some bytes) and then call
>> ioctl(fd, LOOP_SET_CAPACITY, new);
>> The loop driver will learn about the new size and you can use xfs_growfs
>> later on, which will allow you to use full capacity of the loop
>> file without the need to unmount.
>>
>
> Various people have tried this before, if I recall correctly. One was
> Akinobu Mita (cc'ed here).
>
> I don't recall why that patch never was merged?

Yes, I did.
http://lkml.org/lkml/2006/5/23/26

There wasn't outstanding problem in that patch.
But I didn't send updated patch. Because I was just lazy.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/