简体   繁体   English

如何查看我的SVN存储库使用的文件系统?

[英]How do I check what filesystem my SVN repository is using?

I've already created my repository and have been using it for a while. 我已经创建了我的存储库并且已经使用了一段时间。 I wanted to check what filesystem data store it is using: Berkeley DB or FSFS. 我想检查它使用的文件系统数据存储:Berkeley DB或FSFS。 I'm not sure how to check this. 我不知道怎么检查这个。 I've looked at svnadmin, svnlook, etc. Any hints on how to do this? 我看过svnadmin,svnlook等等。有关如何做到这一点的任何提示?

Check the db/fs-type file in your repository: 检查存储库中的db/fs-type文件:

$ cat db/fs-type
fsfs

Assuming you can access the filesystem the repository is on then you can check if there is a file for each source file in the DB subdir 假设您可以访问存储库所在的文件系统,那么您可以检查DB子目录中是否存在每个源文件的文件

Sorry don't know how to do it from the client side 抱歉,不知道如何从客户端这样做

Granted this is an older question, but if you have access to the server, it is possible to examine the details using svnadmin . 虽然这是一个较旧的问题,但如果您有权访问服务器,则可以使用svnadmin检查详细信息。 Change to the directory containing the repositories, and then use svnadmin info REPOSITORY . 切换到包含存储库的目录,然后使用svnadmin info REPOSITORY The Filesystem Type and Filesystem Format will be displayed. 将显示Filesystem TypeFilesystem Format Works with svnadmin version from at least 1.9. 适用于至少1.9的svnadmin版本。

# svnadmin info sandbox #svnadmin info sandbox

Path: sandbox
UUID: c9ff7519-0e7a-4f99-8b60-b23157107fec
Revisions: 0
Repository Format: 5
Compatible With Version: 1.9.0
Repository Capability: mergeinfo
Filesystem Type: fsfs
Filesystem Format: 7
FSFS Sharded: yes
FSFS Shard Size: 1000
FSFS Shards Packed: 0/0
FSFS Logical Addressing: yes
Configuration File: sandbox/db/fsfs.conf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM