[lkml]   [2008]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] loop file resizable
    2008/11/19 Andrew Morton <>:
    > On Mon, 17 Nov 2008 08:44:28 +0100
    > Tomas M <> 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.

    There wasn't outstanding problem in that patch.
    But I didn't send updated patch. Because I was just lazy.

     \ /
      Last update: 2008-11-19 03:09    [W:0.019 / U:4.924 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site