[lkml]   [2004]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: wrong hardlink count for /proc/PID directories
    On Wed, Dec 22, 2004 at 11:42:33PM +0100, Jan Engelhardt wrote:

    > Hm, I have 2.6.8+.9-rc2, and /proc/1 for example has a link count of 3 which
    > seems reasonable: ".", "fd" and "task".

    No, it'd have to be 4 in this case: "1" from "/proc", "." from "/proc/1",
    ".." from "/proc/1/fd" and ".." from "/proc/1/task" all point to "/proc/1".
    It should always be the number of real subdirectories plus two.

    Just copy this directory recursively to a real filesystem and check the
    hardlink count there.

    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 14:08    [W:0.021 / U:49.436 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site