[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [PATCH] Fix for renaming errors on Samba working copy

From: Alan Wood <alan.wood_at_clear.net.nz>
Date: Sun, 12 Oct 2008 21:15:50 +1300


Here is a slightly improved version of my work-around for Samba working copy
failures. Using this patch does leave writable files in the .svn area but at least it
allows you to use svn from both the Linux and Windows side of the share.
 My system that I have been working with:
 Windows XP SP3; RHEL 5; Samba 3.0.14;
Would be nice to fix apr libraries and/or Samba to not have to do this. Hopefully the
new working copy lay-out will not require this either.

I would like to see this in the next 1.5.x release.


On 8 Oct 2008 at 23:44, Bert Huijben wrote:

> On 8 Oct 2008 at 10:43, Bert Huijben wrote:
> >
> > The retry loop checks the exact error. This code checks a boolean against
> > several apr_status_t values ;)
> Actually the retry macro only sees the return form the apr_file_rename().
> The comma operator protects it from the set_file_read_write.
> I did miss the error clearing.
> But that just proves its too hard to read which is why we don't want this version.
> > I think a helper function returning apr_status_t would be the best solution.
> I have attached a helper function for comment, but as I wont have time for lots
> of testing till later in the week and I can't guarantee it at the moment, I guess its
> missed 1.5.3.
> >
> > The helper should clear the svn_error_t and return only the status. Or it
> > should directly call apr to reset the attribute if that is an easier
> > solution. (The cost of allocating an error is not an issue as we are
> > delaying on the error anyway).
> >
> > Thanks,
> > Bert
> >

To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org

Received on 2008-10-12 10:16:44 CEST

This is an archived mail posted to the Subversion Dev mailing list.