Comment 7 for bug 114528

Revision history for this message
Barry Wark (barrywark) wrote : Re: [Bug 114528] Re: New working tree format broken on AFP network mounts (locking error)

Martin,

I'm not sure (and I'm certainly no expert on AFP). I will poke around
and see what I can find and report back.

Barry

On Tue, Mar 18, 2008 at 7:39 PM, Martin Pool <email address hidden> wrote:
> Thanks for the pointer Barry.
>
> Is there any unix/python api that will use the locks on AFP?
>
> ** Changed in: bzr
> Importance: Undecided => Medium
>
> ** Summary changed:
>
>
> - New working tree format broken on AFP network mounts (locking error)
> + dirstate locks don't work on Apple AFP network mounts
>
> ** Tags added: dirstate locking
>
> --
> dirstate locks don't work on Apple AFP network mounts
>
>
> https://bugs.launchpad.net/bugs/114528
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Confirmed
>
> Bug description:
> Using bzr 0.16.0 under python 2.4 on Mac OS X (installed from MacPorts). Working dir/repos is on a network (AFP) share served from a Mac OS X machine, and from the looks of it AFP doesn't support some of the necessary locking.
>
> bzr init and/or bzr upgrade (depending whether I'm in an existing repos or not) give me the following error:
>
> bzr: ERROR: Could not acquire lock [Errno 45] Operation not supported
> /opt/local/lib/python2.4/site-packages/bzrlib/lock.py:79: UserWarning: lock on <open file u'/Volumes/WebServer/work_dir/.bzr/checkout/dirstate', mode 'wb+' at 0x1225de8> not released
> warn("lock on %r not released" % self.f)
> Exception exceptions.IOError: (45, 'Operation not supported') in <bound method _fcntl_WriteLock.__del__ of <bzrlib.lock._fcntl_WriteLock object at 0x1248690>> ignored
> /opt/local/lib/python2.4/site-packages/bzrlib/lockable_files.py:110: UserWarning: file group LockableFiles(<bzrlib.transport.local.LocalTransport url=file:///Volumes/WebServer/work_dir/.bzr/checkout/>) was not explicitly unlocked
> warn("file group %r was not explicitly unlocked" % self)
>