]> git.hungrycats.org Git - linux/commit
sysfs: Register filesystems with sysfs.
authorPatrick Mochel <mochel@osdl.org>
Tue, 4 Mar 2003 06:13:14 +0000 (00:13 -0600)
committerPatrick Mochel <mochel@osdl.org>
Tue, 4 Mar 2003 06:13:14 +0000 (00:13 -0600)
commit8811d2352b42809a421625541f82364a2db51cd1
tree85ef9c785f79a25d262f7838a2b282bee5b7ea4f
parent3795b173a7660f9a45d36035549a659003ee5a6c
sysfs: Register filesystems with sysfs.

Originally from Nikita Danliov.

- Add struct subsystem to struct file_system_type.
- Add fs_subsys_init() to explicitly call sysfs_init() very early.
- Register base fs subsystem then, too.
- Register filesystems' embedded subsystem when registered with fs core.

Resulting tree looks like:

# tree /sys/fs/
/sys/fs/
|-- bdev
|-- devpts
|-- eventpollfs
|-- ext2
|-- ext3
|-- futexfs
|-- iso9660
|-- pipefs
|-- proc
|-- ramfs
|-- rootfs
|-- sockfs
|-- sysfs
`-- tmpfs
fs/filesystems.c
fs/namespace.c
include/linux/fs.h