Hello

i am using file/tree structures trying to do a read/write filesystem,
but i cannot make it use my walk functions and cannot create
directories or files with touch.

i read /sys/src/lib9p/srv.c and seems that in swalk():

if(r->fid->file)
    filewalk(r);
else if ( srv->walk1)
    walkandclone(r,oldwalk1,oldclone,srv);
else if ( srv->walk )
    srv->walk(r);
else
    sysfatal(...);

and firewalk(r) is always called.

what is the piece I'm missing? where is filled that r->fid->file ?

i have srv defined as:

srv fs = {
   .destroyfid = fsdestroyfid,
   .create=fscreate,
   .walk1=fswalk1,
   .clone=fsclone,
   .write=fswrite,
   .read=fsread,
   .remove=fsremove,
};



thanks, and sorry if this is obvious.

gabi

Reply via email to