[lkml]   [2001]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: RFC - tree quotas for Linux (2.4.12, ext2)
    On Wed, 24 Oct 2001, Jan Kara wrote:

    > But how do you solve the following: mv <dir> <some_other_dir>
    > The parent changes. You need to go through all the subdirs of <dir> and change
    > the TID. This is really hard to get right and to avoid deadlocks
    > and races... At least it seems to me so.

    Provided you are tracking the total size in each directory, it's just a
    matter of subtracting dir's size from the old parent, and adding it to the
    new parent. (With suitable checks beforehand to avoid a result which
    exceeds quota.)

    "Our attitude with TCP/IP is, `Hey, we'll do it, but don't make a big
    system, because we can't fix it if it breaks -- nobody can.'"

    "TCP/IP is OK if you've got a little informal club, and it doesn't make
    any difference if it takes a while to fix it."
    -- Ken Olson, in Digital News, 1988

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:10    [W:0.025 / U:33.248 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site