1
1

Modifying the file-open to use the amode argument instead of file structure values for lustre component

This commit was SVN r27154.
Этот коммит содержится в:
Vishwanath Venkatesan 2012-08-27 21:13:23 +00:00
родитель 91104cbdca
Коммит 6ee377c4f5

Просмотреть файл

@ -65,15 +65,15 @@ mca_fs_lustre_file_open (struct ompi_communicator_t *comm,
} }
amode = 0; amode = 0;
if (fh->f_amode & MPI_MODE_CREATE) if (access_mode & MPI_MODE_CREATE)
amode = amode | O_CREAT; amode = amode | O_CREAT;
if (fh->f_amode & MPI_MODE_RDONLY) if (access_mode & MPI_MODE_RDONLY)
amode = amode | O_RDONLY; amode = amode | O_RDONLY;
if (fh->f_amode & MPI_MODE_WRONLY) if (access_mode & MPI_MODE_WRONLY)
amode = amode | O_WRONLY; amode = amode | O_WRONLY;
if (fh->f_amode & MPI_MODE_RDWR) if (access_mode & MPI_MODE_RDWR)
amode = amode | O_RDWR; amode = amode | O_RDWR;
if (fh->f_amode & MPI_MODE_EXCL) if (access_mode & MPI_MODE_EXCL)
amode = amode | O_EXCL; amode = amode | O_EXCL;
if ((mca_fs_lustre_stripe_size || mca_fs_lustre_stripe_width) && if ((mca_fs_lustre_stripe_size || mca_fs_lustre_stripe_width) &&