Skip to content

Commit 40666a9

Browse files
Merge pull request #4 from edgargabriel/pr/ompio_abstraction_minor_item
fs/pvfs2: fix compilation problem
2 parents cd45c7a + d5bdcf8 commit 40666a9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

ompi/mca/fs/pvfs2/fs_pvfs2.h

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ extern int mca_fs_pvfs2_IS_INITIALIZED;
4646

4747
BEGIN_C_DECLS
4848

49+
#define OMPIO_PVFS2_MAX_NAME 100
50+
4951
struct mca_fs_pvfs2_s {
5052
PVFS_credentials credentials;
5153
PVFS_object_ref object_ref;

ompi/mca/fs/pvfs2/fs_pvfs2_file_delete.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ mca_fs_pvfs2_file_delete (char* file_name,
4545
PVFS_sysresp_getparent resp_getparent;
4646
int ret;
4747
PVFS_fs_id pvfs2_id;
48-
char pvfs2_path[OMPIO_MAX_NAME] = {0};
48+
char pvfs2_path[OMPIO_PVFS2_MAX_NAME] = {0};
4949
char * ncache_timeout;
5050

5151
if (!mca_fs_pvfs2_IS_INITIALIZED) {
@@ -64,7 +64,7 @@ mca_fs_pvfs2_file_delete (char* file_name,
6464
memset (&credentials, 0, sizeof(PVFS_credentials));
6565
PVFS_util_gen_credentials (&credentials);
6666

67-
ret = PVFS_util_resolve(file_name, &pvfs2_id, pvfs2_path, OMPIO_MAX_NAME);
67+
ret = PVFS_util_resolve(file_name, &pvfs2_id, pvfs2_path, OMPIO_PVFS2_MAX_NAME);
6868
if (ret != 0) {
6969
return OMPI_ERROR;
7070
}

ompi/mca/fs/pvfs2/fs_pvfs2_file_open.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mca_fs_pvfs2_file_open (struct ompi_communicator_t *comm,
6767
int ret;
6868
mca_fs_pvfs2 *pvfs2_fs;
6969
PVFS_fs_id pvfs2_id;
70-
char pvfs2_path[OMPIO_MAX_NAME] = {0};
70+
char pvfs2_path[OMPIO_PVFS2_MAX_NAME] = {0};
7171
char * ncache_timeout;
7272
open_status o_status = {0, {0, 0}};
7373
struct ompi_datatype_t *open_status_type;
@@ -129,7 +129,7 @@ mca_fs_pvfs2_file_open (struct ompi_communicator_t *comm,
129129

130130

131131
if (OMPIO_ROOT == fh->f_rank) {
132-
ret = PVFS_util_resolve(filename, &pvfs2_id, pvfs2_path, OMPIO_MAX_NAME);
132+
ret = PVFS_util_resolve(filename, &pvfs2_id, pvfs2_path, OMPIO_PVFS2_MAX_NAME);
133133
if (ret < 0 ) {
134134
PVFS_perror("PVFS_util_resolve", ret);
135135
o_status.error = -1;

ompi/mca/io/ompio/io_ompio.h

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ OMPI_DECLSPEC extern int mca_io_ompio_coll_timing_info;
6363
*/
6464
#define OMPIO_PREALLOC_MAX_BUF_SIZE 33554432
6565
#define OMPIO_DEFAULT_CYCLE_BUF_SIZE 536870912
66-
#define OMPIO_MAX_NAME 100
6766
#define OMPIO_TAG_GATHER -100
6867
#define OMPIO_TAG_GATHERV -101
6968
#define OMPIO_TAG_BCAST -102

0 commit comments

Comments
 (0)