From 7f9a18e883a5318f45fd1f6bad702a2fb02087ce Mon Sep 17 00:00:00 2001 From: Jean-Pierre André Date: Wed, 22 Aug 2012 10:00:22 +0200 Subject: Returned the file system inode number to stat() --- kernel/fuse_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3