[OpenAFS] compile fails kernel version 4.4.0-1-default

mdrslmr mdrslmr@online.de
Tue, 8 Mar 2016 16:47:59 +0100 (CET)


Hi Stephan,

On Tue, 8 Mar 2016, Stephan Wiesand wrote:
>
> diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c
> index f65f40c..2630209 100644
> --- a/src/afs/afs_fetchstore.c
> +++ b/src/afs/afs_fetchstore.c
> @@ -326,7 +326,7 @@ struct storeOps rxfs_storeUfsOps = {
>     .padd =    rxfs_storePadd,
>     .close =   rxfs_storeClose,
>     .destroy = rxfs_storeDestroy,
> -#ifdef AFS_LINUX26_ENV
> +#if defined(AFS_LINUX26_ENV) && defined(LINUX_USE_SPLICE)
>     .storeproc = afs_linux_storeproc
> #else
>     .storeproc = afs_GenericStoreProc


I tired a patch without much success. But I'm not sure I did everything
right.

>
>
> and add a configure test defaulting to off?
>

This I didn't do explicitly. Don't know what it means.

I created a patch from what you suggested above.

First I mistakenly build and installed the openafs package new. Than I
remembered that this has to be done in the openafs-modules-dkms. So I
did apply the patch there and installed it. After rebooting
I tried the
"git checkout cb0081604ef5369f34279c6eb77eb4d28406f2ac"
and 
"git checkout master"

a couple off times but after about four times an error occurred with
code -32.

I did all of that on top of AUR-openafs-linux-4.4 which was provided by
Bevan, the openafs archlinux packager.

The patch I actually used is attached below.

Cheers,
Michael


>From db8f4db361c76c355046dacdb83db264d3fa4f6f Mon Sep 17 00:00:00 2001
From: Michael Dressel <michael.dressel@desy.de>
Date: Tue, 8 Mar 2016 16:00:59 +0100
Subject: [PATCH] Test Stephan Wiesand suggestion

---
  src/afs/afs_fetchstore.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c
index f65f40c..2630209 100644
--- a/src/afs/afs_fetchstore.c
+++ b/src/afs/afs_fetchstore.c
@@ -326,7 +326,7 @@ struct storeOps rxfs_storeUfsOps = {
      .padd =	rxfs_storePadd,
      .close =	rxfs_storeClose,
      .destroy =	rxfs_storeDestroy,
-#ifdef AFS_LINUX26_ENV
+#if defined(AFS_LINUX26_ENV) && defined(LINUX_USE_SPLICE)
      .storeproc = afs_linux_storeproc
  #else
      .storeproc = afs_GenericStoreProc
-- 
2.7.1