lkml.org 
[lkml]   [2007]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 06/11] fuse: set i_nlink to sane value after mount
From: Miklos Szeredi <mszeredi@suse.cz>

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>
---

Index: linux/fs/fuse/inode.c
===================================================================
--- linux.orig/fs/fuse/inode.c 2007-08-03 18:36:13.000000000 +0200
+++ linux/fs/fuse/inode.c 2007-08-03 18:36:14.000000000 +0200
@@ -480,6 +480,7 @@ static struct inode *get_root_inode(stru

attr.mode = mode;
attr.ino = FUSE_ROOT_ID;
+ attr.nlink = 1;
return fuse_iget(sb, 1, 0, &attr);
}

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-08-03 19:55    [W:0.106 / U:1.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site