From 6ee377c4f5e9b2c62ba89447f698c52aa42be989 Mon Sep 17 00:00:00 2001 From: Vishwanath Venkatesan Date: Mon, 27 Aug 2012 21:13:23 +0000 Subject: [PATCH] Modifying the file-open to use the amode argument instead of file structure values for lustre component This commit was SVN r27154. --- ompi/mca/fs/lustre/fs_lustre_file_open.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ompi/mca/fs/lustre/fs_lustre_file_open.c b/ompi/mca/fs/lustre/fs_lustre_file_open.c index 8fa41f7d86..52b268125d 100644 --- a/ompi/mca/fs/lustre/fs_lustre_file_open.c +++ b/ompi/mca/fs/lustre/fs_lustre_file_open.c @@ -65,15 +65,15 @@ mca_fs_lustre_file_open (struct ompi_communicator_t *comm, } amode = 0; - if (fh->f_amode & MPI_MODE_CREATE) + if (access_mode & MPI_MODE_CREATE) amode = amode | O_CREAT; - if (fh->f_amode & MPI_MODE_RDONLY) + if (access_mode & MPI_MODE_RDONLY) amode = amode | O_RDONLY; - if (fh->f_amode & MPI_MODE_WRONLY) + if (access_mode & MPI_MODE_WRONLY) amode = amode | O_WRONLY; - if (fh->f_amode & MPI_MODE_RDWR) + if (access_mode & MPI_MODE_RDWR) amode = amode | O_RDWR; - if (fh->f_amode & MPI_MODE_EXCL) + if (access_mode & MPI_MODE_EXCL) amode = amode | O_EXCL; if ((mca_fs_lustre_stripe_size || mca_fs_lustre_stripe_width) &&