[dcmf] [PATCH 6/9] bad comparison

Rob Latham robl at mcs.anl.gov
Fri Feb 15 13:50:30 CST 2008


oops. pvfs fs magic is in hex, not base 10

Signed-off-by: Rob Latham <robl at mcs.anl.gov>
---
 .../mpich2/src/mpi/romio/adio/common/ad_fstype.c   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/mpi/mpich2/src/mpi/romio/adio/common/ad_fstype.c b/lib/mpi/mpich2/src/mpi/romio/adio/common/ad_fstype.c
index e90332d..781287e 100644
--- a/lib/mpi/mpich2/src/mpi/romio/adio/common/ad_fstype.c
+++ b/lib/mpi/mpich2/src/mpi/romio/adio/common/ad_fstype.c
@@ -203,9 +203,9 @@ static void check_for_pvfs_exception(char *filename, int *fstype)
 	err = statfs(dir, &fsbuf);
 	ADIOI_Free(dir);
     }
-    /* 2030528: magic number for pvfs, but we might not have pvfs header files
+    /* 0x2030528: magic number for pvfs, but we might not have pvfs header files
      * in this environment */
-    if (fsbuf.f_type == 20030528) 
+    if (fsbuf.f_type == 0x20030528) 
 	    *fstype = ADIO_UFS;
 }
 
-- 
1.5.3.8




More information about the dcmf mailing list