[OpenAFS] openafs, swsusp2, pf_freeze and refrigerator

Murray, WJ (Bill) W.J.Murray@rl.ac.uk
Fri, 09 Sep 2005 15:02:56 +0100


   Hi Derrick,
        Same problem as a previous poster - I am not signed into the
announce list, silly me. But when nothing appears under 'unstable' 
on the WWW page it doesn't encourage me to look further.
   
      I tried it, and something still seems to be wrong.
I still get an error that PF_FREEZE is not defined.

#ifdef AFS_LINUX26_ENV
#ifdef CONFIG_PM
	if (current->flags & PF_FREEZE)
#ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
	    refrigerator(PF_FREEZE);
#else
	    refrigerator();
#endif
#endif
#endif

   I am not sure where config_pm is defined, but it must be defined in
my case, (FC4, swsusp2). LINUX_REFRIGERATOR_TAKES_PF_FREEZE is false.

Should this not be:

#ifdef AFS_LINUX26_ENV
#ifdef CONFIG_PM
#ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
	if (current->flags & PF_FREEZE)
	    refrigerator(PF_FREEZE);
#else
        if (current->flags)
	    refrigerator();
#endif
#endif
#endif


                 Bill
               


On Fri, 2005-09-09 at 09:11 -0400, Derrick J Brashear wrote:
> On Fri, 9 Sep 2005, Murray, WJ (Bill) wrote:
> 
> >  Hello list (esp. Derrick!)
> >     I am just trying to compile openafs 1.3.87 with swsusp2 2.1.9.9
> > on Fedora 4, and have hit the problems of refrigerator takes no
> > argument, and  PF_FREEZE went away which you refer to.
> >     There appears to be a dirty hack to make it compile  - remove
> > PF_FREEZE - but is there a better solution (e.g. 1.4 RC1)?
> 
> 
> Why you'd not want to try the release candidate is beyond me.
> 
> rc3 (the current one) should fix it.
> 
> Derrick
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info