Locking bug on Mac OS X over AFP
Jay Soffian
jaysoffian at gmail.com
Mon Mar 10 10:25:22 CDT 2008
This isn't a Mercurial bug. There's something odd about symbolic links
over AFP. I tested with the following script, under 10.5.2, with the AFP
volume mounted from another Mac running 10.5.2 as well.
#!/bin/sh
t1=$(date +%s)
ln -s foo bar
while :; do rm bar && break; sleep 1; done
t2=$(date +%s)
echo $((t2-t1))
I've run it a few times and it looks like this:
% bash tester
rm: bar: Resource busy
rm: bar: Resource busy
rm: bar: Resource busy
...
14
I'm seeing between 14 and 26 seconds before the link can be removed.
I guess, file a bug with Apple, or see if google knows anything (I
searched briefly but couldn't find anything; I haven't searched Apple's
developer docs yet though).
j.
More information about the Mercurial
mailing list