8

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 ?

bahrep
  • 29,961
  • 12
  • 103
  • 150
MikeJ
  • 14,430
  • 21
  • 71
  • 87
  • If this needs to go to serverfault, comment here and I will move... – MikeJ Feb 15 '10 at 22:32
  • 1
    @Andrew, it's border-line I'd say.. I say it's ok to have here because SVN is inheritly programming related. – Earlz Feb 15 '10 at 23:35

3 Answers3

9

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
  • 951,095
  • 183
  • 1,149
  • 1,285
  • 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 Feb 16 '10 at 00:20
  • @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 Feb 16 '10 at 00:54
2

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
  • 60,050
  • 10
  • 100
  • 114
  • 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 Feb 16 '10 at 00:21
1

just navigate to path/to/repo/db/fs-type You will get to know the db type subversion using.

SteveScm
  • 545
  • 1
  • 7
  • 15