无法在AIX 7.2机器上使用编译的二进制文件(版本1.10.2)创建颠覆存储库



我们使用compile命令在AIX机上编译了Subversion 1.10.2: -

./configure CFLAGS="-I/temp1110/subversion/zlib" --without-berkeley-db --with-apr=/temp1110/subversion/apr --with-apr-util=/temp1110/subversion/apr-util --with-lz4=internal --with-utf8proc=internal --disable-nls

,而使用" make"命令生成所需的文件后。我们无法创建一个存储库。传递命令./svnadmin create /temp1110/home/Repo_test"后,我们得到错误:

svnadmin:e000009:无法写入'/temp1110/home/repo_test/db/current' 原子上的svnadmin:e000009:无法冲洗文件 '/temp1110/home/repo_test/db'到磁盘:不良文件编号

有什么想法如何解决这个问题?

好吧,您无法解决此问题,这是颠覆的错误。

或一个特定于AIX的问题:fsync(2)在目录上返回errno=EBADF,这使subverions/libsvn_subr/io.c:svn_io_flush_to_disk SAD。

可以使用以下补丁进行修复:

--- subversion/libsvn_subr/io.cold  2018-01-19 05:00:11.000000000 +0100
+++ subversion/libsvn_subr/io.c     2018-12-22 20:25:42.000000000 +0100
@@ -4286,7 +4286,13 @@
      return svn_error_wrap_apr(status, _("Can't move '%s' to '%s'"),
                                svn_dirent_local_style(from_path, pool),
                                svn_dirent_local_style(to_path, pool));
- 
+ #if !defined(_AIX)
+     /* on Aix, you cannot do fsync(2) on a directory,
+        also you cannot open a file for APR_WRITE
+        if its access bits are 444
+        Nonetheless this is a very useful peace of code,
+        just not for AIX.
+     */
  #if defined(SVN_ON_POSIX)
    if (flush_to_disk)
      {
@@ -4314,7 +4320,7 @@
        SVN_ERR(svn_io_file_close(file, pool));
      }
  #endif
- 
+ #endif
    return SVN_NO_ERROR;
  }

最新更新