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 7783910AF7 for ; Thu, 3 Apr 2014 17:47:24 +0000 (UTC) Received: (qmail 43540 invoked by uid 500); 3 Apr 2014 17:47:24 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 43265 invoked by uid 500); 3 Apr 2014 17:47:23 -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 42963 invoked by uid 99); 3 Apr 2014 17:47:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 17:47:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philip.martin@wandisco.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 17:47:14 +0000 Received: by mail-we0-f180.google.com with SMTP id p61so2193894wes.25 for ; Thu, 03 Apr 2014 10:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wandisco.com; s=gapps; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=V0ObBH82gKCJGks/lAjE2B5TAi4B+8JKXwn88mvVCSA=; b=bSnOZJ9mzr7HchV06YLKl5p+GeDnvD4JxNv0gWUdItIBiJkH/cIMnZUMesEMnBaGiF XtD61i8cmNgHRwk/22CsyA82kTNUVw50c5k6/3C62pGhnZu5MRFRDYYvAdKalbY0V6FR VKUQcOgMqlmTMutlhvTMoOJ7EWhu9rEfcBD3A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=V0ObBH82gKCJGks/lAjE2B5TAi4B+8JKXwn88mvVCSA=; b=UnKpnjtVPDDt4NxCnxatWy35JvAfvt6BqBykmhd81/l/Ss/xIBiHlez6t7aKoTkjRL yFltWGXK+e5ExsDn9yIi/0kE30JUOxzhejLoVLaBUofHvNrrsHfefoy5VhKFaecMd3rF 7FTRVf4Z8itJqV/9dJQZEau7rcOiUcCkoBB5bV3rhWii7M19uvndG1Qm65mAG+IbfOAs I8ziZifdpM2gRMYTx8DhetmOF8dQdGugW+4xdDYVgg1HemLxPQPBEpGLsXRj3mAnyJSZ W4zZ7JxYbVKKIqsOsXMFeqdKOa6T793Y7YWGlq+EWiT8qqq2Pq0VDEHa2tRjI08WIkMg iWJw== X-Gm-Message-State: ALoCoQlWycDFsqKb3arkyGfVZQthTqX1lMaR88B28u30Mr++ZXxvlFIVAGakQrv8jMyVvSTLRQ58 X-Received: by 10.194.187.50 with SMTP id fp18mr8112077wjc.89.1396547211979; Thu, 03 Apr 2014 10:46:51 -0700 (PDT) Received: from localhost (cpc20-farn7-2-0-cust13.6-2.cable.virginm.net. [86.15.228.14]) by mx.google.com with ESMTPSA id dg7sm8661472wjc.4.2014.04.03.10.46.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 10:46:51 -0700 (PDT) From: Philip Martin To: Tobias Bading Cc: 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> Date: Thu, 03 Apr 2014 18:46:50 +0100 In-Reply-To: <533D7904.7000500@web.de> (Tobias Bading's message of "Thu, 03 Apr 2014 17:06:44 +0200") Message-ID: <87eh1epaph.fsf@ntlworld.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org Tobias Bading writes: > fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}) = 0 > fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}) = 0 > fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}) = 0 There should be a second fcntl with F_UNLCK, start=0, len=0 which unlocks the whole file. On my Linux system it is present whether or not I use exclusive locking: fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}) = 0 fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=1073741826, len=510}) = 0 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=1073741824, len=1}) = 0 fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 > access("/smb///.svn/wc.db-journal", F_OK) = -1 > ENOENT (No such file or directory) > fstat(3, {st_mode=S_IFREG|0600, st_size=100352, ...}) = 0 > access("/smb///.svn/wc.db-wal", F_OK) = -1 > ENOENT (No such file or directory) > fstat(3, {st_mode=S_IFREG|0600, st_size=100352, ...}) = 0 > [...] > fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=1073741825, len=1}) = 0 > [...] > fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=1073741824, len=1}) = 0 > > then 10 times > > fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=1073741826, len=510}) = -1 EACCES (Permission denied) The missing F_UNLCK means the file is still locked and so this fails. I don't know why SQLite is missing the F_UNLCK. -- Philip Martin | Subversion Committer WANdisco // *Non-Stop Data*