On Fri, 2006-08-04 at 15:58 -0700, Paul Menage wrote:
> On 8/4/06, Matt Helsley <[EMAIL PROTECTED]> wrote:
> >
> > Yes. Can userspace do a mkdir in sysfs? rmdir? My understanding is it
> > cannot because sysfs directories represent groups of attributes the
> > represent pre-existing kernel objects. In order to create a directory
> > we'd likely have to invent some roundabout method for creating these
> > objects -- perhaps by echo'ing to a file:
> >
> > echo 'classes/foo/bar/baz' > /sys/ckrm/mkdir
> 
> Why is this worse than doing a mkdir() syscall?
> 
> Alternatively and perhaps more cleanly,
> 
> echo baz > /sys/ckrm/foo/bar/.create
> 
> which is what I've been experimenting with. It's much simpler than
> having to handle the VFS semantics of mkdir/rmdir
> 
> Paul

Since the interface looks less elegant than mkdir I think you need to
support your assertion. No offense but until we see the code I don't
think we can really see that it's any simpler.

Cheers,
        -Matt Helsley


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to