> 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.
MCREATE has no effect in Linux.
On Plan 9, it means something different
than what you are trying to use it for.
Read Plan 9's bind(1) and bind(2)
if you are interested.

> 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"

I don't understand exactly what you are doing here.
The createfile function in the lib9p library manipulates
File trees and doesn't have anything to do with 9P proper,
but the "cannot clone open fid" is a 9P error;

Russ

Reply via email to