views:

53

answers:

2

How can I determine the type of file system that is used by a given SVN repository? I want to create a new repository with svnadmin but want to make sure I am creating my new repository with consistent settings to other repositories already on the server.

I dont want to setup a berkley db repository if all the others are FSFS on the system.

Can I reliably just look in /repositoryname/db/fs-type ?

+1  A: 

svnadmin list-dblogs /path/to/repo will list nothing if there are no db logs (ie. not berkely db). i dont know how failsafe that is though because if nothing has been done then there might not be any logs (? - not sure because i always use fsfs). PErhaps using this combined with look directly at the db dir on the filesystem would be accurat, though i can tthink of a case where the element on the fs wouldnt be accurate.

prodigitalson
Thanks. I will give this a try. I am just trying to be consistent with what was done in the past on this server. yoru feedback seems perfectly logical.
MikeJ
+5  A: 

If you're using a modern version of Subversion, the default is FSFS and has been for quite some time. Looking at db/fs-type is a reliable method of determining what you have already set up.

Greg Hewgill
Thanks Greg. The docs I have in hand say that FSFS is new and not the default. I need to make a new repository and our sys-admin has moved on in the last month or so. I am sure its documented somehwere in our corporate twiki but finding it has been difficult. thanks for the feedback.
MikeJ
@MikeJ: what version of Subversion are you using? The documentation for `svnadmin create` states that as of Subversion 1.2, FSFS is the default: http://svnbook.red-bean.com/en/1.5/svn.ref.svnadmin.c.create.html
Greg Hewgill