bzr broken over NFS
John A Meinel
john at arbash-meinel.com
Sun Feb 26 05:22:08 GMT 2006
Giao Phan wrote:
> I'm unsure if I'm supposed to post bugs to the bzr.dev tree here or to
> the bugtracker, but I'm having problems doing just about anything an NFS
> partition, (I'm assuming that the problem, because if I work on local
> disk it's all good.). Both NFS server and client are linux box. Is
> this something that will be fixed by the new locking code?
>
> I did an rsync:
>
> % rsync -avn --delete bazaar-ng.org::bazaar-ng/bzr/bzr.dev .
>
> Then I try to grab another copy:
>
> %bzr get http://bazaar-ng.org/bzr/bzr.dev bzr.dev2
> FIXME: clone via create and fetch is probably faster when versioned file
> comes in.
> FIXME use a branch format here
> /home/casret/src/bzr.dev/bzrlib/branch.py:434: DeprecationWarning:
> bzrlib.branch.initialize was deprecated in version 0.8.
> br_to = to_branch_type.initialize(to_location)
> bzr: ERROR: bzrlib.errors.LockError: [Errno 37] No locks available
> at /home/casret/src/bzr.dev/bzrlib/lock.py line 97
> in __init__
> /home/casret/src/bzr.dev/bzrlib/lock.py:62: UserWarning: lock on <open
> file u'/home/casret/src/bzr.dev2/.bzr/branch-lock', mode 'wb' at
> 0xb776f848> not released
> warn("lock on %r not released" % self.f)
>
> It then just hangs there, can't keyboard interrupt or suspend, have to
> do a kill -9 from another terminal.
Well, the FIXME are things that just need to be cleaned up. We had a few
big changes recently, and there are a couple of loose ends.
The problem with NFS seems to be that you aren't able to use 'fcntl' to
create an OS-level lock over NFS.
What version of NFS are you using?
In the short-short term, there probably isn't a lot we can do for you.
However, our next branch format is going to use atomic renaming of
directories to handle locking, rather than using OS locks.
If you want to pursue it further, please let us know what kernel and nfs
versions you are using.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060225/9d334633/attachment.pgp
More information about the bazaar
mailing list