From: Miklos Szeredi Date: Wed, 17 Oct 2007 06:31:02 +0000 (-0700) Subject: fuse: set i_nlink to sane value after mount X-Git-Tag: v2.6.24-rc1~545 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=074406fa6309ab8b0aca15496b16b3653e58c03d;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index e8d360add50..951e760d5c5 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); }