Adds tracking of hardlinks when reading a directory.

This commit is contained in:
Bahadir Balban
2008-02-16 12:36:50 +00:00
parent 09bd001e1a
commit 08b1e0e42c
4 changed files with 17 additions and 14 deletions

View File

@@ -102,7 +102,7 @@ struct dirbuf {
struct vnode {
unsigned long vnum; /* Filesystem-wide unique vnode id */
int refcnt; /* Reference counter */
int hardlinks; /* Number of hard links */
int links; /* Number of hard links */
struct superblock *sb; /* Reference to superblock */
struct vnode_ops ops; /* Operations on this vnode */
struct file_ops fops; /* File-related operations on this vnode */