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

Re: vfat mount and subversion

From: Ilpo Järvinen <ilpo.jarvinen_at_helsinki.fi>
Date: 2006-03-20 12:27:28 CET

On Mon, 20 Mar 2006, Branko ?ibejj wrote:

> Ilpo Järvinen wrote:
> > On Sun, 19 Mar 2006, Branko ?ibejj wrote:
> >
> > > Ilpo Järvinen wrote:
> > >
> > > > I have encountered couple of problems on a laptop which has a vfat
> > > > mounted
> > > > for sharing between Linux and XP. I'm not sure whether this has been
> > > > reported earlier (I searched for vfat but nothing came up). And I also
> > > > quickly scanned through the fixes made in 1.3.0 and and 1.3.1 but
> > > > couldn't
> > > > find any reference.
> > > >
> > > > ijjarvin@kivilampi-30:~$ svn --version
> > > > svn, version 1.2.3 (r15833)
> > > > compiled Aug 26 2005, 03:42:45
> > > >
> > > > Because vfat does not have standard chmoding capabilities,
> > > >
> > > Which we don't use anyway.
> >
> > !??!
> >
> Sorry, I shoul've been more specific -- we don't use them on Windows.
> We do of course use them on Unix, so ...

Now your statement makes sense also for me... :-)

> > ...Hmm... strace of the commit command has line:
> >
> > chmod("/dos/repository/c2cd/db/transactions/1-1.txn/rev", 0770) = -1 EPERM
> > (Operation not permitted)
> >
> Yes. You're mounting a FAT partition on Linux ... how do you set the file
> owner and group in the mount options? If you're not the owner of a file, then
> of course you can't chmod it (even though the chmod will do nothing on FAT).

Yes, you're right here, my bad. I'm not owner even though I have
rwxrwx--- access which I would define as "normal" since the commit would
definately be possible. Failing with the message about chmod (and some
"cannot set to read-only" type messages in the WC usage I described in the
earlier post) mislead me to believe that svn, in general, tries to do
operations which have no meaning on FAT and fails because of that.

Armed with this information, I reused LD_PRELOAD trickery for chmod
provided by fakeroot and the commit succeeded.

-- 
 i.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 20 12:27:46 2006

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