[OpenAFS] openafs-1.3.52 - please apply this patch

Helmut Jarausch jarausch@igpm.rwth-aachen.de
Wed, 03 Mar 2004 10:54:46 +0100 (CET)


Hi,

as Hans-Werner Paulsen pointed out already Jan 10, 2003
Linux doesn't allow fsync'ing a raw tape device which is a character
device.

So please apply the following patch modified to use something like
AFS_Linux_ENV

--- openafs-1.3.52/src/usd/usd_file.c.orig	2004-03-03 10:16:48.000000000 +0100
+++ openafs-1.3.52/src/usd/usd_file.c	2004-03-03 10:07:24.000000000 +0100
@@ -308,7 +308,8 @@
 	code = usd_FileIoctl(usd, USD_IOCTL_GETTYPE, &mode);
 	if (code == 0) {
 	    if (S_ISBLK(mode)
-#ifndef AFS_AIX_ENV
+/*HJ #ifndef AFS_AIX_ENV */
+#if 0
 		/* on AIX3.1 can't fsync raw disk device */
 		|| S_ISCHR(mode)
 #endif

Many thanks,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany