[mpich2-commits] r6684 - mpich2/trunk/src/mpi/romio/adio/ad_xfs

robl at mcs.anl.gov robl at mcs.anl.gov
Wed May 19 15:56:52 CDT 2010


Author: robl
Date: 2010-05-19 15:56:52 -0500 (Wed, 19 May 2010)
New Revision: 6684

Modified:
   mpich2/trunk/src/mpi/romio/adio/ad_xfs/ad_xfs_fcntl.c
Log:
from Michael Raymond <mraymond at sgi.com>: xfs preallocation done with an ioctl,
not an fcntl.


Modified: mpich2/trunk/src/mpi/romio/adio/ad_xfs/ad_xfs_fcntl.c
===================================================================
--- mpich2/trunk/src/mpi/romio/adio/ad_xfs/ad_xfs_fcntl.c	2010-05-19 20:52:43 UTC (rev 6683)
+++ mpich2/trunk/src/mpi/romio/adio/ad_xfs/ad_xfs_fcntl.c	2010-05-19 20:56:52 UTC (rev 6684)
@@ -7,6 +7,7 @@
 
 #include "ad_xfs.h"
 #include "adio_extern.h"
+#include <sys/ioctl.h>
 
 #ifndef HAVE_LSEEK64
 #define lseek64 lseek
@@ -41,7 +42,7 @@
 	fl.l_len = fcntl_struct->diskspace;
 
 #if defined(LINUX) && defined(MPISGI)
-	err = fcntl(fd->fd_sys, XFS_IOC_RESVSP64, &fl);
+	err = ioctl(fd->fd_sys, XFS_IOC_RESVSP64, &fl);
 #else
 	err = fcntl(fd->fd_sys, F_RESVSP64, &fl);
 #endif



More information about the mpich2-commits mailing list