Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BAE14106C4 for ; Wed, 9 Apr 2014 11:21:27 +0000 (UTC) Received: (qmail 34983 invoked by uid 500); 9 Apr 2014 11:21:27 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 34153 invoked by uid 500); 9 Apr 2014 11:21:25 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 34001 invoked by uid 99); 9 Apr 2014 11:21:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 11:21:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.227.15.3] (HELO mout.web.de) (212.227.15.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 11:21:16 +0000 Received: from [172.20.3.46] ([194.115.214.225]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0LbrUu-1XEqME1CpY-00jEdC for ; Wed, 09 Apr 2014 13:20:54 +0200 Message-ID: <53452D15.8010400@web.de> Date: Wed, 09 Apr 2014 13:20:53 +0200 From: Tobias Bading User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: users@subversion.apache.org Subject: Re: strange E/W200033 (b)locking error/warning when trying to modify a svn 1.8 working copy over SMB share References: <533D7904.7000500@web.de> <534516DD.8070805@web.de> <20140409101953.GA30217@jim.stsp.name> In-Reply-To: <20140409101953.GA30217@jim.stsp.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fBlh3+ZNuW/Foll2UmQm8KwXvJxGxrGMKBcErmk2+73EJOfAQ9D jnvfpncN1dD11oVNy5RngyJX+aNxH4isatcimxzHY4wiqwyAnNJAhXgko8jiQr7ZPOfwBQB pMt/tzDEaC0Wz3jN2EAt+8M2GKyqpsa9iRnqcN3s8d6TYedrFISZkeYMrjfxsTvqOEQha9U rZRbGve21cyLz97HRZTsw== X-Virus-Checked: Checked by ClamAV on apache.org On 09.04.2014 12:19, Stefan Sperling wrote: > On Wed, Apr 09, 2014 at 11:46:05AM +0200, Tobias Bading wrote: >> Hi, >> >> follow-up regarding my problems with "database is locked" errors when trying >> to access a Subversion 1.8 working copy located on an AIX machine remotely >> via SMB from a GNU/Linux machine: >> >> - A Windows SMB share causes the same errors, so it's not specific to Samba. >> >> - The problem can be circumvented by mounting the SMB share with option >> 'nobrl'. From the mount.cifs(8) man page: >> >> nobrl >> Do not send byte range lock requests to the server. This is necessary >> for certain applications that break with cifs style mandatory byte >> range locks (and most cifs servers do not yet support requesting >> advisory byte range locks). >> >> I'm currently giving the 'nobrl' option in combination with >> >> [working-copy] >> exclusive-locking-clients = svn >> >> in ~/.subversion/config a try. So far it seems to work just fine. :-) >> >> Tobias > > Hi Tobias, > > That's very nice! > > Would be able to prepare a patch against our FAQ to document this? > Perhaps this entry could be extended: > http://subversion.apache.org/faq.html#nfs > > Source code of the website is here: > http://svn.apache.org/repos/asf/subversion/site/publish/ Well, so far I didn't do much testing. Basic things like Emacs running a "svn resolved" when the last conflict marker is gone works, as does a "svn update" from the Linux machine. But it might be possible that I've managed to outmaneuver SQLite's locking mechanism(s) entirely. A "strace svn update" shows that calls like fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=1073741826, len=510}) = 0 work now, which is to be expected of course if the 'nobrl' option basically converted these calls into no-ops. I had hoped though that the 'exclusive-locking-clients = svn' option would cause svn to lock the wc.db file completely, but I can't see anything like that in the trace, just a few byte-range locks via fcntl(F_SETLK). So my guess would be that at the moment, svn commands running on the Linux machine don't lock the working copy on the AIX machine at all. That's fine for my use cases, but not something I would recommend to others in general.