advertisement

Article:
  MacFUSE: New Frontiers in File Systems
Subject:   st_nlink is the number of hard links.
Date:   2007-03-19 11:21:06
From:   ralph@inputplus.co.uk
Response to: st_nlink is the number of hard links.

First off, when I say "directories don't have hard links", I mean you can't create a hard link to a directory (through link(2)). You are interpreting "hard link" to be synonymous with the link count of a file or directory.


Indeed I am since where I come from, UNIX, they are the same thing, hard links being resposible for incrementing an inode's reference count. It's even in the struct member's name: st_nlink.


Thanks for pointing out that HFS+ doesn't conform to this model. I wonder if this affects find(1)'s attempt at leaf optimisation, see -noleaf.


Cheers, Ralph.


1 to 1 of 1
  1. st_nlink is the number of hard links.
    2007-03-21 14:57:17  osxbook [View]

1 to 1 of 1