[OpenAFS] "afs: failed to store file (5)"

Anders Magnusson ragge@ltu.se
Tue, 31 Mar 2009 18:50:55 +0200


Harald Barth wrote:
>> "afs: failed to store file (5)" now and then.
>>     
>
> This patch is currently the best guess:
>
> # cat STABLE14-rx-idledead-only-ignore-keepalives-20081222.patch
> --- src/rx/rx.c.orig    2008-09-25 19:26:47.000000000 +0200
> +++ src/rx/rx.c 2009-03-12 18:01:22.000000000 +0100
> @@ -5380,7 +5380,7 @@
>       * idle connections) */
>      conn->lastSendTime = call->lastSendTime = clock_Sec();
>      /* Don't count keepalives here, so idleness can be tracked. */
> -    if (p->header.type != RX_PACKET_TYPE_ACK)
> +    if ((p->header.type != RX_PACKET_TYPE_ACK) || (((struct rx_ackPacket *)rx_DataOf(p))->reason != RX_ACK_PING))
>         call->lastSendData = call->lastSendTime;
>  }
>
>   
Hm, so this would mean that the error is just because of some time
counter do not get updated?
I'll see if I can apply it and test.  Thanks!

-- Ragge


>> There are lots of file accesses to the machine so I have no idea what
>> causing this.
>>     
>
> I'll leave that ...
>
>   
>> Anyone have an idea?  Is the message above fatal or will it try again to
>> save the file?
>>     
>
> The error is returned to the user.
>
> Harald.
>