svn 中FSFS和VDFS的區別


轉自http://blog.csdn.net/caster_saber/article/details/49586195

 

VDFS是基於FSFS的,公司的官網有介紹:VisualSVN Server

It's worth to notice that VDFS data store is built on top of the standard FSFS backend. The existing FSFS-based repositories can be instantly converted into a VDFS repository. Moreover, there is no data lock-in and you can instantly convert a VDFS repository back into a regular FSFS-based repository.

簡單來說這個是VisualSVN基於FSFS文件系統格式擴展的,根據wikipedia的說法:VisualSVN Server

VisualSVN Distributed File System (VDFS). Multisite Repository Replication is based on VDFS technology. VDFS enables automatic, transparent, bidirectional replication of Subversion repositories between multiple locations (each slave repository is writeable). VDFS follows the classic master / slave replication architecture and uses Microsoft RPC as its transport layer.

也就是說,分布式版本管理DVCS興起之后,大家發現多個倉庫的好處了,開始給SVN增加這個功能。

至於FSFS本身是SVN在2004年開始替換Berkeley DB的,是基於文件系統概念設計的,而不是基於數據庫的概念,根據 的說法,采用目錄樹的結構去做transaction,可以在目錄外創建完一次提交,然后把完成的提交一次性移動進版本歷史。另外,根據他們的數據結構,對Berkeley DB的append操作是O(N^2)的,而FSFS是O(N)的。當然更完整的介紹可以看:

如果你不是太在乎私有格式,也需要多倉庫同步,可以用VDFS,官方文檔說了VDFS默認的service是沒有啟動的,所以對你日常應該沒有影響。如果不喜歡私有格式,就用FSFS就好。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM