> oh, i thought you were comparing system/library calls, not library function
> vs program. i don't understand that comparison.
it so happens that mv is a program with own idea how to do renames,
and there are no other obvious subject to compare with.
> try 'ratrace -c auth/none cmd ...' while not being none
> and ignore everything preceding Exec "cmd".
nice trick.
>
> > as i understand it, your claim is that mv works as none but ape/rename
> > does not and this is because ape/rename uses wstat.
>
> both use wstat or copying; what's differen
> no, i didn't. ratrace doesn't run if you're none.
try 'ratrace -c auth/none cmd ...' while not being none
and ignore everything preceding Exec "cmd".
> as i understand it, your claim is that mv works as none but ape/rename
> does not and this is because ape/rename uses wstat.
both use wstat o
On Thu Aug 23 12:19:22 EDT 2012, yari...@gmail.com wrote:
> > are you sure?
> >
> > ; touch bz
> > ; ratrace -c mv bz bw >[2=1]| grep -v 'Stat|Brk'
>
> you forgot auth/none...
no, i didn't. ratrace doesn't run if you're none. but that's beside
the point.
as i understand it, yo
> are you sure?
>
> ; touch bz
> ; ratrace -c mv bz bw >[2=1]| grep -v 'Stat|Brk'
you forgot auth/none...
; ratrace -c auth/none mv bz bw >[2=1]| grep -v ' none |Stat|Brk'
209051 mv Wstat 8cfe 0xdfffcef4/"bz" 0xc708 51 = -1 './bw' file does
not exist 1345738572648442848 13457385
On Thu Aug 23 11:44:55 EDT 2012, yari...@gmail.com wrote:
> > why is this related to ape? if you are none, then you are limited
> > as to what you can do on the file server. you may just have an auth
> > problem.
>
> APE implements rename() in terms of wstat or copying. It's just
> doesn't try
> why is this related to ape? if you are none, then you are limited
> as to what you can do on the file server. you may just have an auth problem.
APE implements rename() in terms of wstat or copying. It's just
doesn't try to work around failing wstat (that's perhaps a good thing)
while mv does.
On Thu Aug 23 10:48:13 EDT 2012, yari...@gmail.com wrote:
> Is there a specific reason of forbidding wstat for 'none' in fossil
> (/sys/src/cmd/fossil/9p.c:130,133)?
> This causes APE rename() to fail almost always
> (/sys/src/ape/lib/ap/plan9/rename.c:43)
>
> Perhaps rename() should be fixed to m