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

Re: access repository via samba

From: Erik Anderson <erikba_at_teamworkgroup.com>
Date: 2004-08-07 00:36:32 CEST

When you use the file:// protocol to access a subversion repository, both
the client and server are on your local machine. When using most kinds of
(modern) databases, it is a Bad Thing to have the database server on a
different machine as the database files themselves. Networked filesystems
behave much differently than local filesystems, mostly in terms of
availability (what happens if the .db files suddenly become unavailable in
the middle of a transaction?), file locking (how do we prevent others from
using the .db files while we are running this operation?), and latency (when
i write to a file, how long will it take for the file to actually be written
to?). Networked filesystems just cannot provide the guarantees that local
filesystems can.

If you need to have the repository held on a different machine from your
workstation, please look into keeping the svn server on the same machine,
either through the apache or svnserve server.

In the Book, this is described in Chapter 5, pg 66

----- Original Message -----
From: "Nina Pham" <nina@gibbons.com>
To: <users@subversion.tigris.org>
Sent: Friday, August 06, 2004 3:16 PM
Subject: access repository via samba

> I have svn server configured for https on my FC2 system. I use samba to
> share the repository. From my XP pc, I map the drive (say Y:) to the
> repository. From my pc, I do ls -R y:
>
> *C:\repository>ls -R y:
> y::
> repos
>
> y:repos:
> README.txt dav format locks
> conf db hooks
>
> y:repos/conf:
> svnserve.conf
>
> y:repos/dav:
> activities.dir activities.pag
>
> y:repos/db:
> DB_CONFIG __db.004 log.0000000001 strings
> __db.001 __db.005 nodes transactions
> __db.002 changes representations uuids
> __db.003 copies revisions
>
> y:repos/hooks:
> post-commit.tmpl pre-commit.tmpl start-commit.tmpl
> post-revprop-change.tmpl pre-revprop-change.tmpl
>
> y:repos/locks:
> db-logs.lock db.lock
>
> C:\repository>
>
> *But if failed when I tried to checkout using file:/// (I can check out
> using https though)
>
> *C:\repository>svn co file:///y:/repos repos1
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///y:/repos'
> svn: Berkeley DB error while opening environment for filesystem
y:/repos/db:
> Invalid argument
> *
> I thought when I map a drive using samba, then I can do svn file:/// as
> I'm on the same system. Is it true that there's no way to access
> repository via file:/// from my windows XP if the server reside on the
> linux box?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 7 00:32:16 2004

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