[OpenAFS] Anyone got openAFS to work on Mandrake Linux 8.1rc?

Paolo Saggese Paolo.Saggese@libero.it
Wed, 3 Oct 2001 10:55:01 +0200


On Sunday 23 September 2001 23:36, you wrote:

>    If you were able to get it to work drop me a line, or maybe if you h=
ave
> the older CD(beta 3) please don't throw it away because it works with
> openAFS.

maybe you've noticed it already, but on the Mandrake bug tracking there's=
=20
this (still open) entry:
-------------------------------------------------------------------------=
-------
Fix for AFS/OpenAFS to work with Mandrake's custom kernel=20
Bug#: 1950=20
Product: Mandrake Linux=20
Version: 7.2=20
Status: ASSIGNED=20
Resolution:=20
Component: kernel=20
Category: wishlish=20
Priority: normal=20
Assigned To: chmouel@mandrakesoft.com=20
Reported By: dkeller@vnet.ibm.com=20

The Mandrake version of the kernel has the following added to
"/usr/src/linux/fs/attr.c" notifiy_change():

    if (inode->i_shadow)
          return
inode->i_shadow->i_sb->s_op->notify_change(dentry, attr);

When trying to use AFS or OpenAFS "inode->i_shadow" is valid but
"inode->i_shadow->i_sb" is NULL so this code cause AFS to crash.
To make AFS work I simply changed the code to this:

    if (inode->i_shadow && inode->i_shadow->i_sb)
          return
inode->i_shadow->i_sb->s_op->notify_change(dentry, attr);

It may be AFS's fault for the crash but this is an easy fix which
allows Mandrake to work with AFS.
-------------------------------------------------------------------------=
-------


Ciao,
=09=09=09=09Paolo.

--
http://borex.lngs.infn.it/saggese
You can still escape from the GATES of hell: Use Linux!