[OpenAFS-devel] Re: [OpenAFS] start OpenAFS 1.2.11-fc1 Segmentation fault with kernel 2.4.22-1.2174.nptl

Todd M. Lewis Todd_Lewis@unc.edu
Thu, 04 Mar 2004 08:55:37 -0500


This is a multi-part message in MIME format.

--------------080505040402060107050106
Content-Type: text/plain;
	charset="us-ascii";
	format=flowed
Content-Transfer-Encoding: 7bit



Derrick J Brashear wrote:
> On Wed, 3 Mar 2004, jds wrote:
> 
> 
>>Hi Derek:
>>
>>    Thanks by comments, both my next question is? why working good client
>>openafs with kernel 2.4.22-1-xxx before the 2.4.22-1-2174?
>>
>>     No problems with cache, Iam use all filesystem type reiserfs y startup
>>client afs OK.
> 
> 
> other than the oops, which is a cache on reiser problem. stop using reiser
> for your cache.

Would a patch (see attached) for src/afsd/afs.rc.linux be out of line? 
Seems noobies are going to hit their collective head on this forever, 
and we'll keep answering this question just as badly...

-- 
    +--------------------------------------------------------------+
   / Todd_Lewis@unc.edu  919-962-5273  http://www.unc.edu/~utoddl /
  / I fired my masseuse today. She just rubbed me the wrong way. /
+--------------------------------------------------------------+

--------------080505040402060107050106
Content-Type: text/plain;
	name="afs.rc.linux-ext23.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="afs.rc.linux-ext23.patch"

--- afs.rc.linux-orig	2004-03-04 08:28:23.000000000 -0500
+++ afs.rc.linux	2004-03-04 08:47:24.000000000 -0500
@@ -177,6 +177,12 @@
 		exit 1
 	fi
 
+	cachefs=$(grep $(df $CACHE | grep $CACHE | cut -f1  -d' ') /etc/mtab | cut -f3 -d' ')
+	if [ "${cachefs:-none}" != "ext2" ] && [ "${cachefs:-none}" != "ext3" ] ; then
+		echo $CACHE is not an ext2 or ext3 filesystem. Not starting AFS.
+		exit 1
+	fi
+
 	# use the prefix command if required
 	set_prefix
 	/sbin/insmod ${PREFIX:+-P $PREFIX} -f -m $MODLOADDIR/$LIBAFS > $MODLOADDIR/libafs.map 2>&1

--------------080505040402060107050106--