From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <36c9016b7918c302d777f1a605fc107f@brasstown.quanstro.net> Date: Fri, 30 Jan 2015 15:19:35 -0500 Message-ID: From: "Joel C. Salomon" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] wstat and atomic directory change Topicbox-Message-UUID: 3f22c4a2-ead9-11e9-9d60-3106f5b1d025 On Fri, Jan 30, 2015 at 10:59 AM, Giacomo Tesio wrote: > As far as I can read intro(5), it explicitly excludes slash as a valid > character for the Plan 9 OS, but it also explicitly states that "the > protocol has no such restriction". My reading is that a 9p2000 server might allow a filename of the form "b/c"; e.g. this tree is possible: a |-- b | +-- c | +-- d +-- b/c +-- d Note that "a" / "b" / "c" / "d" is distinct from "a" / "b/c" / "d". Plan 9, because of its Unix heritage, will not be able to deal with this, but the protocol has no such limitation. On the other hand, if you bypass the OS and issue a Walk to "a/b/c/d", there is a well-defined response required in the protocol -- either open the file with that (impossible) name, or fail. > Still, using this protocol "feature" to enable atomic directory change could > be useful in my use cases, but I don't want to build yet another 9p2000 > extension. It'll have to be an extension -- a technically incompatible one, though the incompatibilities will not ever happen. --Joel