Maybe locking is a bzr thing....
John Arbash Meinel
john at arbash-meinel.com
Mon Oct 15 18:53:22 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruce Korb wrote:
> On 10/14/07, Alexander Belchenko <bialix at ukr.net> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Bruce Korb пишет:
>>> $ bzr get http://cdd.alioth.debian.org/bzr/simple-cdd/releases/simple-cdd-0.3.5/
>>> bzr: ERROR: Could not acquire lock [Errno 37] No locks available
>> "No locks available": because your files on /share I assume it's NFS or samba disk,
>> right? So problem here that bzr wants to have some file-locking mechanism
>> for your files on that disk. I don't know much about Linux, but probably
>> you need setup and run some locking support for shared disks.
>
> ?? That has been integrated into UNIX-y systems since forever (OK, since
> a couple of decades ago).
So the basic problem is that we are asking for an OS level lock. And you do not
have file-locking enabled on your NFS share. (Or something between the NFS
server and your NFS client.)
I forget the exact configuration change, but just enabling locks usually fixes
this.
...
> Thank you. I'll go figure out what this means and use "knits format".
'bzr init --format=knit'
The problem is that as an older format we actually give a warning when using
it. (Commands like 'bzr status' and 'bzr diff' actually run quite a bit slower,
which is why we transitioned away, we just ran into some other issues with the
new format.)
I believe you can disable the warning with a single line change to the source,
and I thought Alexander had a plugin which does it. (It is just setting
bzrlib.workingtree.WorkingTreeFormat3.upgrade_recommended = False)
>> 2Martin, Robert, John: file locks must die. I will say it again and again.
>
> And again :) ---
It wouldn't be that hard to work out a WT5 format that just replaced the file
(like we used to do in WT4 and previous). The three of us are pretty focused
elsewhere this month. I could probably talk someone through most of it.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHE6kSJdeBCYSNAAMRAiWzAKDZVcSZP5kmL2qpZSLrvqc2x/T7hwCfR9lf
c2ikw1QJy8wpQpck/7JQn+g=
=YajJ
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list