Re: [PATCH] [Request for inclusion] Filesystem in Userspace

Nikita Danilov
2004-11-17T16:59:53Z

Miklos Szeredi writes:
> > No. Actually, put it in sysfs, and then udev will create your /dev node
> > for you automatically. And in sysfs you can put your other stuff
> > (version, etc.) which is the proper place for it.
>
> Next question: _where_ to put other stuff? In /proc this has a
> logical place for filesystems: /proc/fs/fsname/other_stuff. But
> there's no filesystem section in sysfs.

/sys/fs used to exist for for some. Moreover, /sys/fs/foofs/ was added
automagically when foofs file system type was registered. But it was
ultimately removed, because nobody took the time to fix all races
between accessing /sys/fs/foofs/gadget and
umount/filesystem-module-unloading.

Another way is to implement special "control" file-system type (using
fs/libfs.c functions), to be used like

mount -tfoofs /device /mnt/point
mount -tfoo_ctrlfs -o host=/mnt/point /mnt/control-point

Again, nobody took the time to actually do this for any real
file-system, as far as I know.

>
> So?

Go ahead bravely. :)

>
> Thanks,
> Miklos

Nikita.