On Tue, 2006-10-10 at 14:58 -0700, Joel Becker wrote: > On Tue, Oct 10, 2006 at 02:31:43PM -0700, Paul Menage wrote: > > > NAK. This forces a complex and inappropriate interface on the > > >majority of users, and doesn't honor configfs' simplicity-first design. > > > > How is the seq_file interface complex and inappropriate? For the > > configfs clients it's basically a drop-in replacement for sprintf(), > > as Chandra's patches show. > > Well, they now have to learn seq_file. They now get to assume > that "spewing large amounts of junk" is the default rather than "single > attribute", which is correct. None of it is relevant for the majority > of correct users.
We want to be able to export a sequence of small (<< 1 page), homogenous, unstructured (scalar), attributes through configfs using the same file. While this is rather specific, I'd guess it would be a common occurrence. Yes, keeping track of writing to these sequences (add, remove, replace) is a problem. But that's what the file position is for. configfs could support exporting sequences of common (scalar) types that need to be exported from the kernel. Types like u32, u64, pid_t, etc. Then seek can be used to index into the sequence to indicate append or replace. seek and truncate would have to be translated into bytes so configfs can manage the buffers behind the scenes while passing sequence position to the code that uses configfs. Does this seem reasonable? 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