summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2007-10-16 23:31:02 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 08:43:04 -0700
commit074406fa6309ab8b0aca15496b16b3653e58c03d (patch)
tree5906e18a17a03d71ddbacecdaaa949b2cc3b9169 /fs/fuse
parentb10099792b6276c31cee4c021e0a5d3f9a9e33ed (diff)
downloadlinux-074406fa6309ab8b0aca15496b16b3653e58c03d.tar.bz2
fuse: set i_nlink to sane value after mount
Aufs seems to depend on a positive i_nlink value. So fill in a dummy but sane value for the root inode at mount time. The inode attributes are refreshed with the correct values at the first opportunity. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index e8d360add50a..951e760d5c5a 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -472,6 +472,7 @@ static struct inode *get_root_inode(struct super_block *sb, unsigned mode)
attr.mode = mode;
attr.ino = FUSE_ROOT_ID;
+ attr.nlink = 1;
return fuse_iget(sb, 1, 0, &attr);
}