From: Miklos S. <mi...@sz...> - 2008-07-23 09:49:22
|
On Tue, 22 Jul 2008, Daniel Benamy wrote: > On Saturday 19 July 2008 03:54:14 Miklos Szeredi wrote: > > On Fri, 18 Jul 2008, Daniel Benamy wrote: > > > In my filesystem, I don't pass the length of buf in size. Instead I > > > specify one of a couple of constants as the size which tells the fs > > > what to do. Buf is a shorter, null terminated string (shorter than > > > the value passed as size). This works correctly; valgrind doesn't > > > show memory errors. Is this behavior supported? Ie, should it > > > continue to work or might it suddenly break in a future version? > > > > Sounds pretty weird. > > > > Why not pass the "command" as the first few bytes of the buffer, > > instead of encoding it in the length? > > There's an existing kernel filesystem which has this interface Curious, which one? Miklos |