Hi!

I am writing an small fs with linux and plan9ports. I have some problems :-(

1. When the fs does: threadpostmountsrv(&fs, nil, mtpt, MREPL|MCREATE), the 
application fails. The problem is the mtpt directory does not exists. Then I 
need to do mkdir(mtpt, MKDIR_MODE); and then threadpostmountsrv(...). Why? I 
set the MCREATE.

2. When the fs creates the directory then I can enter and do a ls command. All 
is fine. But If I use createfile(fs->root, name, user, DMDIR|MKDIR_MODE, nil), 
then when I do a ls I get: "Numerical result out of range". Using chatty, I can 
see: "ename cannot clone open fid"

What I am doing wrong?

Thanks.

kix.


Reply via email to