[OpenAFS-testers] Re: [OpenAFS-devel] OpenAFS 1.2.8 Release Candidate 3 now available for testing

Mattias Amnefelt mattiasa@e.kth.se
Tue, 10 Dec 2002 01:54:54 +0100


--m51xatjYGsM+13rf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

With the attached patch I can load the kernel-module on tru64 5.0a

strchr() isn't defined in the kernel here. Should we autoconf-test for
it, or define strchr to afs_strchr in params.alpha_dux50.h instead?

/mattiasa

--m51xatjYGsM+13rf
Content-Type: text/x-patch; charset=us-ascii
Content-Disposition: attachment; filename="strchr.patch"

Index: DUX/osi_vnodeops.c
===================================================================
RCS file: /cvs/openafs/src/afs/DUX/osi_vnodeops.c,v
retrieving revision 1.5.4.2
diff -u -u -w -r1.5.4.2 osi_vnodeops.c
--- DUX/osi_vnodeops.c	2002/08/28 03:54:49	1.5.4.2
+++ DUX/osi_vnodeops.c	2002/12/10 00:48:37
@@ -584,7 +584,6 @@
 		 * in ubc_dirty_kluster when more than one process writes
 		 * this page at the same time. */
 		toffset = page->pg_offset;
-		flags |= B_DIRTY;
 		ubc_page_release(page, flags);
 
 		if (cnt > 10) {
Index: UKERNEL/afs_usrops.c
===================================================================
RCS file: /cvs/openafs/src/afs/UKERNEL/afs_usrops.c,v
retrieving revision 1.9.2.1
diff -u -u -w -r1.9.2.1 afs_usrops.c
--- UKERNEL/afs_usrops.c	2002/04/24 01:41:38	1.9.2.1
+++ UKERNEL/afs_usrops.c	2002/12/10 00:48:37
@@ -2219,7 +2219,7 @@
 	/*
 	 * terminate the current component and skip over slashes
 	 */
-	nextPathP = strchr(pathP, '/');
+	nextPathP = afs_strchr(pathP, '/');
 	if (nextPathP != NULL) {
 	    while (*nextPathP == '/') {
 		*(nextPathP++) = '\0';
Index: VNOPS/afs_vnop_lookup.c
===================================================================
RCS file: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v
retrieving revision 1.14.2.10
diff -u -u -w -r1.14.2.10 afs_vnop_lookup.c
--- VNOPS/afs_vnop_lookup.c	2002/11/14 21:24:33	1.14.2.10
+++ VNOPS/afs_vnop_lookup.c	2002/12/10 00:48:38
@@ -1414,7 +1414,7 @@
 		ConvertSToRLock(&tvc->lock);
 		code = 0;
 	    }
-	    if (!code && !strchr(tvc->linkData, ':'))
+	    if (!code && !afs_strchr(tvc->linkData, ':'))
 		force_eval = 1;
 	    ReleaseReadLock(&tvc->lock);
 	}

--m51xatjYGsM+13rf--