diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-17 02:31:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:43:04 -0400 |
commit | 074406fa6309ab8b0aca15496b16b3653e58c03d (patch) | |
tree | 5906e18a17a03d71ddbacecdaaa949b2cc3b9169 /fs/fuse | |
parent | b10099792b6276c31cee4c021e0a5d3f9a9e33ed (diff) |
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.c | 1 |
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) | |||
472 | 472 | ||
473 | attr.mode = mode; | 473 | attr.mode = mode; |
474 | attr.ino = FUSE_ROOT_ID; | 474 | attr.ino = FUSE_ROOT_ID; |
475 | attr.nlink = 1; | ||
475 | return fuse_iget(sb, 1, 0, &attr); | 476 | return fuse_iget(sb, 1, 0, &attr); |
476 | } | 477 | } |
477 | 478 | ||