summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Pierre André <jpandre@users.sourceforge.net>2012-08-22 10:00:22 +0200
committerJean-Pierre André <jpandre@users.sourceforge.net>2012-08-22 10:00:22 +0200
commit7f9a18e883a5318f45fd1f6bad702a2fb02087ce (patch)
tree442e4ef19246df280a7e1ca9c7c95f912b4e55ac
parent277542a4f55599ded251d987834c11bec69a2f60 (diff)
downloadillumos-fusefs-7f9a18e883a5318f45fd1f6bad702a2fb02087ce.tar.gz
Returned the file system inode number to stat()
-rw-r--r--kernel/fuse_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fuse_vnops.c b/kernel/fuse_vnops.c
index a7e4885..4a76712 100644
--- a/kernel/fuse_vnops.c
+++ b/kernel/fuse_vnops.c
@@ -1361,7 +1361,8 @@ static void fuse_set_getattr(struct vnode *vp, struct vattr *vap,
vap->va_mask = AT_ALL;
vap->va_type = vp->v_type;
- vap->va_nodeid = VNODE_TO_NODEID(vp);
+ /* return the file system ino, not the fuse internal nodeid */
+ vap->va_nodeid = attr->ino;
vap->va_rdev = vp->v_rdev;
vap->va_blksize = vp->v_vfsp->vfs_bsize;