[OpenAFS] Re: OpenAFS

mdrslmr mdrslmr@online.de
Wed, 9 Mar 2016 21:03:47 +0100 (CET)


Hi Stephan and Michael,

I finally got Stephans patch installed. And it
seams to cure the issue. I have not had an error
for the last 20 tries.

Thanks a lot for your help.

Below I have put the three patches I actually used.

Cheers,
Michael

--- a/src/afs/LINUX/osi_fetchstore.c	2015-12-16 16:42:23.000000000 +0100
+++ b/src/afs/LINUX/osi_fetchstore.c	2016-03-09 16:10:08.885506900 +0100
@@ -38,7 +38,7 @@
  #include "afs/param.h"

  #include <linux/fs.h>
-#if defined(HAVE_LINUX_SPLICE_DIRECT_TO_ACTOR)
+#if 0 && defined(HAVE_LINUX_SPLICE_DIRECT_TO_ACTOR)
  # include <linux/splice.h>
  #else
  # include <linux/pipe_fs_i.h>
@@ -47,7 +47,7 @@
  #include "afs/sysincludes.h"
  #include "afsincludes.h"

-#if defined(HAVE_LINUX_SPLICE_DIRECT_TO_ACTOR)
+#if 0 && defined(HAVE_LINUX_SPLICE_DIRECT_TO_ACTOR)
  static int
  afs_linux_splice_actor(struct pipe_inode_info *pipe,
  		       struct pipe_buffer *buf,
@@ -151,6 +151,7 @@
      return size;
  }

+#if 0
  afs_int32
  afs_linux_storeproc(struct storeOps *ops, void *rock, struct dcache *tdc,
                      int *shouldwake, afs_size_t *bytesXferred)
@@ -184,5 +185,6 @@

      return code;
  }
+#endif

  #endif



--- a/src/afs/LINUX/osi_vnodeops.c	2015-12-16 16:42:23.000000000 +0100
+++ b/src/afs/LINUX/osi_vnodeops.c	2016-03-09 16:04:30.914260820 +0100
@@ -834,7 +834,7 @@
  #if defined(STRUCT_FILE_OPERATIONS_HAS_SENDFILE)
    .sendfile =   generic_file_sendfile,
  #endif
-#if defined(STRUCT_FILE_OPERATIONS_HAS_SPLICE)
+#if 0 && defined(STRUCT_FILE_OPERATIONS_HAS_SPLICE)
  # if defined(HAVE_LINUX_ITER_FILE_SPLICE_WRITE)
    .splice_write = iter_file_splice_write,
  # else





--- a/src/afs/afs_fetchstore.c	2015-12-16 16:42:23.000000000 +0100
+++ b/src/afs/afs_fetchstore.c	2016-03-09 16:05:23.490605032 +0100
@@ -329,7 +329,7 @@
      .padd =	rxfs_storePadd,
      .close =	rxfs_storeClose,
      .destroy =	rxfs_storeDestroy,
-#ifdef AFS_LINUX26_ENV
+#if 0 && defined(AFS_LINUX26_ENV)
      .storeproc = afs_linux_storeproc
  #else
      .storeproc = afs_GenericStoreProc