[BusyBox] mount -a, using sysfs()

Glenn McGrath bug1 at optushome.com.au
Sun Dec 31 05:28:25 UTC 2000


Erik Andersen wrote:
> 
> On Sun Dec 31, 2000 at 02:52:17PM +1100, Glenn McGrath wrote:
> > I just ran across the sysfs call, it can be used instead of
> > /proc/filesystems.
> >
> > /proc/partitions or the equivalent thing with the devps patch are used
> > by bb mount to get a list of all possible filesystem to mount if the fs
> > type isnt specified.
> >
> > Seems to me it would be better to use sysfs() than parsing
> > /proc/filesystems or doing the equivalent thing with the devps patch,
> > maybe im overlooking something though.
> >
> > If this is a good idea i will implement it.
> 
> Hmm.  Never noticed that syscall before (thats the trouble with syscalls -- the
> interfaces are usually hidden).  Could you write up a silly little test app
> first as a proof of concept?  Something that essentially duplicates what
> running 'cat /proc/filesystems' shows?
> 
>  -Erik
> 
> --
> Erik B. Andersen   email:  andersen at lineo.com
> --This message was written using 73% post-consumer electrons--

The file attached produces the following output on my system, the
difference between it and /proc/filesystems is that some entries in
/rpoc/filesystems have nodev proceeding them

shm
sockfs
pipefs
proc
ext2
ramfs
msdos
vfat
iso9660
autofs
nfs
devpts


Glenn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc_filesystems.c
Type: text/x-csrc
Size: 412 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20001231/fbce7e7f/attachment.c 


More information about the busybox mailing list