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

From: Nikita Danilov
Date: Wed Nov 17 2004 - 12:05:11 EST


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