From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] lib9p help From: "Russ Cox" Date: Fri, 17 Feb 2006 16:30:50 +0000 In-Reply-To: <82c890d00602171323j29dfb68ckc89089b2ce0d37c3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 00e1814a-ead1-11e9-9d60-3106f5b1d025 > always fails when using lib9p. i though i need to provide walk1 and > clone to create > directories that doesn't exists. Using the chatty option all messages are walks > when doing mkdirs abd when touching a file. i don't believe that. there should be Tcreate messages too. /sys/src/lib9p/ramfs.c uses file/tree structures (and allows creation of new files). 9p(2) says Create The create function must fill in both r->fid->qid and r->ofcall.qid on success. When using file trees, create should allocate a new File with createfile; note that createfile may return nil (because, say, the file already exists). If the create function is nil, srv behaves as though it were a function that always responded with the error ``create prohibited''. russ