[BusyBox] mount -a, using sysfs()

Glenn McGrath bug1 at optushome.com.au
Sun Dec 31 05:01:16 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
> 

Im trying to do that now, having a few problems doing syscalls (not very
experienced with em) but i should be able to work it out.

I read about sysfs from a new book by O'Reilly, "Understanding the linux
kernel",  seems to be a good book so far.



Glenn





More information about the busybox mailing list