All of lore.kernel.org
 help / color / mirror / Atom feed
From: Egmont Koblinger <egmont@uhulinux.hu>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Subject: Re: wrong hardlink count for /proc/PID directories
Date: Thu, 23 Dec 2004 00:02:37 +0100	[thread overview]
Message-ID: <20041222230237.GA2175@cs.bme.hu> (raw)
In-Reply-To: <Pine.LNX.4.61.0412222340540.475@yvahk01.tjqt.qr>

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.



-- 
Egmont

  reply	other threads:[~2004-12-22 23:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22 22:16 wrong hardlink count for /proc/PID directories Egmont Koblinger
2004-12-22 22:42 ` Jan Engelhardt
2004-12-22 23:02   ` Egmont Koblinger [this message]
2004-12-30  1:12   ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041222230237.GA2175@cs.bme.hu \
    --to=egmont@uhulinux.hu \
    --cc=jengelh@linux01.gwdg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.