This patch adds an empty /sys/fs, which filesystems can use.
Signed-off-by: Miklos Szeredi <[email protected]>
Index: linux/include/linux/fs.h
===================================================================
--- linux.orig/include/linux/fs.h 2006-01-13 21:52:18.000000000 +0100
+++ linux/include/linux/fs.h 2006-01-13 22:51:37.000000000 +0100
@@ -1297,6 +1297,9 @@ extern void mnt_set_mountpoint(struct vf
extern int vfs_statfs(struct super_block *, struct kstatfs *);
+/* /sys/fs */
+extern struct subsystem fs_subsys;
+
#define FLOCK_VERIFY_READ 1
#define FLOCK_VERIFY_WRITE 2
Index: linux/fs/namespace.c
===================================================================
--- linux.orig/fs/namespace.c 2006-01-13 21:52:16.000000000 +0100
+++ linux/fs/namespace.c 2006-01-13 22:51:37.000000000 +0100
@@ -48,6 +48,10 @@ static int hash_mask __read_mostly, hash
static kmem_cache_t *mnt_cache;
static struct rw_semaphore namespace_sem;
+/* /sys/fs */
+decl_subsys(fs, NULL, NULL);
+EXPORT_SYMBOL(fs_subsys);
+
static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry)
{
unsigned long tmp = ((unsigned long)mnt / L1_CACHE_BYTES);
@@ -1725,6 +1729,7 @@ void __init mnt_init(unsigned long mempa
i--;
} while (i);
sysfs_init();
+ subsystem_register(&fs_subsys);
init_rootfs();
init_mount_tree();
}
--
On Sat, Jan 14, 2006 at 01:39:49AM +0100, Miklos Szeredi wrote:
> This patch adds an empty /sys/fs, which filesystems can use.
How does this address all the comments on the last submission
(as part of the reiser4 core changes)?
> > This patch adds an empty /sys/fs, which filesystems can use.
>
> How does this address all the comments on the last submission
> (as part of the reiser4 core changes)?
It's a different patch.
This just adds /sys/fs without any content. Fuse needs this to add
some stuff, and other fs can use it as needed.
Miklos