[OpenAFS] Compatibility of openafs with suspend2 ?

Madhusudan Singh singh.madhusudan@gmail.com
Sun, 2 Oct 2005 00:04:32 -0400

On Tuesday 27 September 2005 6:33 pm, Jeffrey Hutzelman wrote: 

> On Tuesday, September 27, 2005 05:53:44 PM -0400 Madhusudan Singh
> <singh.madhusudan@gmail.com> wrote:
> > Hi
> >
> > Over the past 2-3 days, I have tried to add software suspend (using patch
> > from  www.suspend2.net) functionality into the kernel (tried 2.6.12 and
> > 2.6.13 -  openafs modules compile and install correctly with
> > without this  patch) and each time, the compilation of openafs has
> > failed.
> >
> > I am wondering if this is at all possible. If anyone has a working
> > configuration, please post.
> Well, since you just said "it failed" without posting any details, I can
> only guess what problems you might be encountering.
> In order to get OpenAFS to work with a 2.6.12 kernel with swsusp2, you will
> need to undo a change made by the swsusp2 patches to the last line of
> kernel/power/process.c.  Change
> EXPORT_SYMBOL_GPL(refrigerator);
> back to
> EXPORT_SYMBOL(refrigerator);
> Without this change, the OpenAFS module will fail to load.  I reported this
> problem to the suspend2 maintainer a while ago, and while he says he made
> the change, it hadn't been integrated as of (I haven't looked yet
> at, which is the latest version available for Linux 2.6.12).
> To build against Linux 2.6.13, you will likely need the latest OpenAFS
> release candidate, released today.  Unfortunately, we've just gotten word
> that the source tarball on the web site is broken, so you might want to
> wait a few hours until it's been replaced with a corrected one.
> -- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
>    Sr. Research Systems Programmer
>    School of Computer Science - Research Computing Facility
>    Carnegie Mellon University - Pittsburgh, PA

Here is the error o/p from the module compilation :

[M]  /usr/src/modules/openafs/src/libafs/MODLOAD-
/usr/src/modules/openafs/src/libafs/MODLOAD- In 
function 'osi_rdwr':
warning: '_fs_space_decl.seg' may be used uninitialized in this function
[M]  /usr/src/modules/openafs/src/libafs/MODLOAD-
In file included 
from /usr/src/modules/openafs/src/libafs/MODLOAD-
include/linux/seq_file.h:43: warning: 'printk' is an unrecognized format 
function type
[M]  /usr/src/modules/openafs/src/libafs/MODLOAD-
[M]  /usr/src/modules/openafs/src/libafs/MODLOAD-
/usr/src/modules/openafs/src/libafs/MODLOAD- In 
function 'osi_TimedSleep':
error: 'PF_FREEZE' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)
make[8]: *** 
Error 1
make[7]: *** 
[_module_/usr/src/modules/openafs/src/libafs/MODLOAD-] Error 2
make[7]: Leaving directory `/usr/src/linux-'
make[6]: *** [openafs.ko] Error 2
make[6]: Leaving directory 
make[5]: *** [linux_compdirs] Error 2
make[5]: Leaving directory `/usr/src/modules/openafs/src/libafs'
make[4]: *** [libafs] Error 2
make[4]: Leaving directory `/usr/src/modules/openafs'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/usr/src/modules/openafs'
make[2]: *** [only_libafs] Error 2
make[2]: Leaving directory `/usr/src/modules/openafs'
make[1]: *** [build-modules-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/openafs'
Module /usr/src/modules/openafs failed.
Hit return to Continue