You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bryan Tong Minh <br...@gmail.com> on 2009/04/18 10:42:28 UTC
Subversion bug when performing actions on individual files on a
Samba share
Hello,
When I have a working copy using SVN 1.6.1, I can't perform actions on
individual files when they are located on a Samba share. For a file
"trunk/file.c" it tries to get "trunk/file.c/.svn/entries" instead of
"trunk/.svn/entries" or which ever file in the .svn directory it is
supposed to access.
I am using SVN on a Windows Vista x64 computer. The wc is located on a
samba share which is mapped to a windows drive letter. SVN is
downloaded as binary from tigris.
Z:\>svn --version
svn, version 1.6.1 (r37116)
compiled Apr 10 2009, 19:06:38
== How to reproduce ==
(D: is a local drive, Z: is a samba mount)
D:\>svn checkout http://svn.collab.net/repos/svn/trunk/www/
[...]
Checked out revision 37352.
D:\>svn rm www\index.html
D www\index.html
D:\>Z:
Z:\>svn checkout http://svn.collab.net/repos/svn/trunk/www/
[...]
Checked out revision 37352.
Z:\>svn rm www\index.html
svn: Can't open file 'www\index.html\.svn\entries': De mapnaam is ongeldig.
Z:\>
Please inform me if you need any further information.
Best regards,
Bryan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1787205
Re: Subversion bug when performing actions on individual files on a
Samba share
Posted by Alan Wood <Al...@clear.net.nz>.
On 3 Jul 2009 at 2:46, Kub wrote:
> Hi,
> I've got the same problem on a samba share, winxp and tortoisesvn.
>
> It seems that it appear on tsvn 1.5.8.
>
A bit more context would be nice, so here it is from the beginning of the thread in
April.
Z: is a maxstor NAS with Samba 3.0.2
Z:\>svn checkout http://svn.collab.net/repos/svn/trunk/www/
[...]
Checked out revision 37352.
Z:\>svn rm www\index.html
svn: Can't open file 'www\index.html\.svn\entries': De mapnaam is ongeldig.
The error printed here is the windows error 267 "ERROR_DIRECTORY" which
from the windows help is described in full as "The directory name is invalid".
Doesn't help much. On Vista it has been associated with permission issues so
checking permissions would be a good idea.
This error code could be from the Samba server or client but from looking in the apr
code is not translated into APR_ENOENT or APR_ENOTDIR which are the codes
which are checked for to determine if the path is a working copy
directory.
If you can patch the subversion source (apr actually) then adding
ERROR_DIRECTORY to APR_STATUS_IS_ENOENT in apr_errno.h should fix
it.
A totally different tack if you don't mind the risk is to use a
trunk version of subvesion as the .svn folder is not used for the
purpose of checking if a file is under revision control. Be warned
that the working copy format has changed so you can't use a working
copy created by trunk with 1.6 or earlier clients and as it is
trunk, stability is not guaranteed. This new layout will be released
with version 1.7 of subversion.
As I believe that the issue is not in the trunk version of svn and
the best fix is actually in the apr library your chance of getting
anything changed is minimal. If however you still have a problem
using the trunk version I would be interested in looking further
into the issue.
Good luck
Alan Wood
>
> --
> View this message in context: http://www.nabble.com/Subversion-bug-when-performing-actions-on-individual-files-on-a-Samba--share-tp23112394p24320393.html
> Sent from the Subversion Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2367757
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2367931
Re: Subversion bug when performing actions on individual files on a
Samba share
Posted by Kub <st...@gmail.com>.
Hi,
I've got the same problem on a samba share, winxp and tortoisesvn.
It seems that it appear on tsvn 1.5.8.
--
View this message in context: http://www.nabble.com/Subversion-bug-when-performing-actions-on-individual-files-on-a-Samba--share-tp23112394p24320393.html
Sent from the Subversion Dev mailing list archive at Nabble.com.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2367757
Re: Subversion bug when performing actions on individual files on a
Samba share
Posted by Bryan Tong Minh <br...@gmail.com>.
Hi Alan,
On Sat, Apr 18, 2009 at 11:46 PM, Alan Wood <al...@clear.net.nz> wrote:
> Hi Bryan,
> I'm afraid to say that this works for me. Never seen anything like this before.
>
> Before trying to investigate further are you aware of the issues with subversion
> working copies on Samba shares?
> see
> http://subversion.tigris.org/issues/show_bug.cgi?id=3053
> and a (now slightly out of date) patch for one issue here which is working for me:
>
This seems to be a different problem. Note that it used to work under SVN 1.5.
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1787
> 205
>
> Unless you have a very good reason for it, you should not use Samba for working
> copies.
>
> Having said that, I do use Tortoisesvn ( with patches applied ) .
I used both SVN and TortoiseSVN and they both show the same behaviour.
>
> What version of Samba are you using? or is this a CIFS box? There are plenty of
> non-confoming CIFS systems out there.
>
Actually I don't really have a clue. The server is a NAS, a Maxtor
Shared Storage Plus. It runs the following samba:
# /usr/local/samba/sbin/smbd --version
Version 3.0.2
What I think is the problem, is that SVN recognizes all files as
directories, and therefore tries to load the .svn directory from
dir/file.ext/.svn instead of from dir/.svn. Maybe it is some weird
kind of interactoin between Vista x64, Samba and SVN. I will see
whether I can find an 32 bits Vista installation to test this out. As
I said before, it did work on 1.5.
> Alan
>
Regards,
Bryan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1797087
Re: Subversion bug when performing actions on individual files on a
Samba share
Posted by Alan Wood <Al...@clear.net.nz>.
Hi Bryan,
I'm afraid to say that this works for me. Never seen anything like this before.
Before trying to investigate further are you aware of the issues with subversion
working copies on Samba shares?
see
http://subversion.tigris.org/issues/show_bug.cgi?id=3053
and a (now slightly out of date) patch for one issue here which is working for me:
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1787
205
Unless you have a very good reason for it, you should not use Samba for working
copies.
Having said that, I do use Tortoisesvn ( with patches applied ) .
What version of Samba are you using? or is this a CIFS box? There are plenty of
non-confoming CIFS systems out there.
Alan
On 18 Apr 2009 at 12:42, Bryan Tong Minh wrote:
> Hello,
>
>
> When I have a working copy using SVN 1.6.1, I can't perform actions on
> individual files when they are located on a Samba share. For a file
> "trunk/file.c" it tries to get "trunk/file.c/.svn/entries" instead of
> "trunk/.svn/entries" or which ever file in the .svn directory it is
> supposed to access.
>
> I am using SVN on a Windows Vista x64 computer. The wc is located on a
> samba share which is mapped to a windows drive letter. SVN is
> downloaded as binary from tigris.
>
> Z:\>svn --version
> svn, version 1.6.1 (r37116)
> compiled Apr 10 2009, 19:06:38
>
> == How to reproduce ==
> (D: is a local drive, Z: is a samba mount)
>
> D:\>svn checkout http://svn.collab.net/repos/svn/trunk/www/
> [...]
> Checked out revision 37352.
>
> D:\>svn rm www\index.html
> D www\index.html
>
> D:\>Z:
>
> Z:\>svn checkout http://svn.collab.net/repos/svn/trunk/www/
> [...]
> Checked out revision 37352.
>
> Z:\>svn rm www\index.html
> svn: Can't open file 'www\index.html\.svn\entries': De mapnaam is ongeldig.
>
> Z:\>
>
>
> Please inform me if you need any further information.
>
>
> Best regards,
>
> Bryan
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1787205
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1796632