From 1a27522693aa92d8d050cf97bfcf82ec482b0528 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Wed, 18 Mar 2015 14:14:19 +1100 Subject: [PATCH] Added cachingfs support for nlink. --- samples/cachingfs/caching_fs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/cachingfs/caching_fs.go b/samples/cachingfs/caching_fs.go index 00178ed..bf3fd8b 100644 --- a/samples/cachingfs/caching_fs.go +++ b/samples/cachingfs/caching_fs.go @@ -164,6 +164,7 @@ func (fs *cachingFS) rootAttrs() fuse.InodeAttributes { // LOCKS_REQUIRED(fs.mu) func (fs *cachingFS) fooAttrs() fuse.InodeAttributes { return fuse.InodeAttributes{ + Nlink: 1, Size: FooSize, Mode: 0777, Mtime: fs.mtime, @@ -173,6 +174,7 @@ func (fs *cachingFS) fooAttrs() fuse.InodeAttributes { // LOCKS_REQUIRED(fs.mu) func (fs *cachingFS) dirAttrs() fuse.InodeAttributes { return fuse.InodeAttributes{ + Nlink: 1, Mode: os.ModeDir | 0777, Mtime: fs.mtime, } @@ -181,6 +183,7 @@ func (fs *cachingFS) dirAttrs() fuse.InodeAttributes { // LOCKS_REQUIRED(fs.mu) func (fs *cachingFS) barAttrs() fuse.InodeAttributes { return fuse.InodeAttributes{ + Nlink: 1, Size: BarSize, Mode: 0777, Mtime: fs.mtime,