From: fredrik Date: Thu, 3 Aug 2006 02:09:18 +0000 (+0000) Subject: Fill st_ino in stat replies. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=3be0e39f14a7dbd72ccfb055938beb5709ae112f;p=vcfs.git Fill st_ino in stat replies. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/vcfs@682 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/vcfs.c b/vcfs.c index e49b437..8529eb3 100644 --- a/vcfs.c +++ b/vcfs.c @@ -307,6 +307,7 @@ static void fusegetattr(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *f return; } fillstat(&sb, &file); + sb.st_ino = ino; fuse_reply_attr(req, &sb, 0); } @@ -338,6 +339,7 @@ static void fuselookup(fuse_req_t req, fuse_ino_t parent, const char *name) memset(&e, 0, sizeof(e)); e.ino = cacheinode(fsd, target, inoc->inotab); fillstat(&e.attr, &file); + e.attr.st_ino = e.ino; fuse_reply_entry(req, &e); } @@ -525,6 +527,7 @@ static void fusemkdir(fuse_req_t req, fuse_ino_t parent, const char *name, mode_ memset(&e, 0, sizeof(e)); e.ino = cacheinode(fsd, fsd->nextino++, nilnode); fillstat(&e.attr, &new); + e.attr.st_ino = e.ino; fuse_reply_entry(req, &e); }