Re: [9fans] wstat and atomic directory change

2015-01-30 Thread Giacomo Tesio
It surely would not be conformant to Plan 9 systems, but to the protocol? 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. Be patient: I'm asking because this could be a

Re: [9fans] wstat and atomic directory change

2015-01-30 Thread Anthony Sorace
On Jan 30, 2015, at 10:59 , Giacomo Tesio giac...@tesio.it wrote: It surely would not be conformant to Plan 9 systems, but to the protocol? No. Joel has it right. Writing a server which allows / in names would mean that the / you're slipping into a name wouldn't always be a directory

Re: [9fans] wstat and atomic directory change

2015-01-30 Thread Joel C. Salomon
On Fri, Jan 30, 2015 at 10:59 AM, Giacomo Tesio giac...@tesio.it 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

Re: [9fans] 9atom boot problem

2015-01-30 Thread erik quanstrom
Well, I left the machine on its own and after slightly less than an hour it offered a prompt with some more info, I believe, so now it might be clearer to say what is wrong. See prompt.png. that's expected behavior /sys/lib/newuser will fix that. the lengthy init was all venti. - erik

Re: [9fans] wstat and atomic directory change

2015-01-30 Thread erik quanstrom
Now, since the protocol does not restrict names (even if Plan 9 does it), I'm wondering if setting the name to a full path starting from root could be used to change atomically the directory of a file (given the write permission on both original and target directory). Obviously I'm not

[9fans] wstat and atomic directory change

2015-01-30 Thread Giacomo Tesio
Hi, I'm wondering about the validity of an interpretation of intro(5) and stat(5) that could allow a server to atomically change the directory of a file. From intro(5) http://man.cat-v.org/9front/5/intro The notation string[s] (using a literal s character) is shorthand for s[2] followed by s