From 02a4eb2f13866f03b0bfb23ff66a91932f6bae4c Mon Sep 17 00:00:00 2001 From: Edgar Gabriel Date: Wed, 5 Aug 2015 14:28:27 -0500 Subject: [PATCH] add the ompi_file_t pointer correctly on the ompio file handle for the sm and individual component. --- ompi/mca/sharedfp/individual/sharedfp_individual_file_open.c | 1 + ompi/mca/sharedfp/sm/sharedfp_sm_file_open.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ompi/mca/sharedfp/individual/sharedfp_individual_file_open.c b/ompi/mca/sharedfp/individual/sharedfp_individual_file_open.c index 886985adf0..4dd8a53947 100644 --- a/ompi/mca/sharedfp/individual/sharedfp_individual_file_open.c +++ b/ompi/mca/sharedfp/individual/sharedfp_individual_file_open.c @@ -54,6 +54,7 @@ int mca_sharedfp_individual_file_open (struct ompi_communicator_t *comm, opal_output(0, "mca_sharedfp_individual_file_open: Error during file open\n"); return err; } + shfileHandle->f_fh = fh->f_fh; sh = (struct mca_sharedfp_base_data_t*) malloc ( sizeof(struct mca_sharedfp_base_data_t)); if ( NULL == sh ){ diff --git a/ompi/mca/sharedfp/sm/sharedfp_sm_file_open.c b/ompi/mca/sharedfp/sm/sharedfp_sm_file_open.c index 1d609532ab..7cd3fdd5af 100644 --- a/ompi/mca/sharedfp/sm/sharedfp_sm_file_open.c +++ b/ompi/mca/sharedfp/sm/sharedfp_sm_file_open.c @@ -69,6 +69,7 @@ int mca_sharedfp_sm_file_open (struct ompi_communicator_t *comm, opal_output(0, "mca_sharedfp_sm_file_open: Error during file open\n"); return err; } + shfileHandle->f_fh = fh->f_fh; /*Memory is allocated here for the sh structure*/ if ( mca_sharedfp_sm_verbose ) {