gpt4 book ai didi

windows - 通过 cifs 进行的颠覆不起作用

转载 作者:可可西里 更新时间:2023-11-01 11:09:09 26 4
gpt4 key购买 nike

我正在尝试在 linux 机器上使用 subversion,存储库位于 Microsoft sbs2008 服务器上。 (我可以从 Microsoft Windows 7 机器访问存储库。)有人能告诉我如何让它工作吗?

这就是我所做的。

# sudo mount -t cifs -v -o credentials=~/Files/server-mount-credentials,uid=richard,nocase,nounix,nosuid  //sbs2008/local ~/Files/server-mount/

# svn commit -m ""

Adding file1
Sending file2
Transmitting file data ........svn: Commit failed (details follow):
svn: database is locked

strace 显示:

open("/home/rdelorenzi/Files/server-mount/svn_repository/db/rep-cache.db", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 12

...

_llseek(12, 162816, [162816], SEEK_SET) = 0
read(12, "\n\0\0\0\20\1 \0\1 \1N\1|\1\252\1\330\2\6\0024\2b\2\220\2\276\2\354\3\32"..., 1024) = 1024

_llseek(12, 100352, [100352], SEEK_SET) = 0
read(12, "\n\0\0\0\24\0i\0\0i\0\227\0\305\0\363\1!\1O\1}\1\253\1\331\2\7\0025\2c"..., 1024) = 1024
_llseek(12, 52224, [52224], SEEK_SET) = 0
read(12, "\n\0\0\0\24\0k\0\0\231\0\307\0\365\1#\1Q\1\177\1\255\1\333\2\t\0027\2d\2\222"..., 1024) = 1024

fcntl64(12, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=1073741824, len=1}, 0xbf8e15e8) = 0
fcntl64(12, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=1073741826, len=510}, 0xbf8e15e8) = -1 EACCES (Permission denied)

最佳答案

不要通过网络共享安装 subversion 存储库,它不会可靠地工作。

file:// access is intended for local, single-user access only, particularly testing and debugging. When you want to share the repository you really need to set up a proper server, and it is not nearly as difficult as you might think. Read the section called “Accessing the Repository” for guidelines on choosing and setting up a server. [link]

正如 David W 所说,您需要运行一个 SVN 服务器。

关于windows - 通过 cifs 进行的颠覆不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9706286/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com