summaryrefslogtreecommitdiffstats
path: root/src/H5FPprivate.h
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-10-31 21:46:58 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-10-31 21:46:58 (GMT)
commitd677a77c4d56460b7e0238ba512933c7fd67e3d6 (patch)
treeaf5e59454b544db6056964d08d010febd3e56647 /src/H5FPprivate.h
parent61d964625ebb39af5326bc11dc52790ab39c8202 (diff)
downloadhdf5-d677a77c4d56460b7e0238ba512933c7fd67e3d6.zip
hdf5-d677a77c4d56460b7e0238ba512933c7fd67e3d6.tar.gz
hdf5-d677a77c4d56460b7e0238ba512933c7fd67e3d6.tar.bz2
[svn-r7805] Purpose:
Bug Fix Description: The End of Address information needed to be kept by the SAP. Some processes were trying to get the EOA information in collective mode, but the action wasn't collective at the time. Solution: Keep the EOA information for the file on the SAP. Clients query the SAP to get/set it when needed. Platforms tested: Linux (w/ FPHDF5) Copper (w/o FPHDF5) (FPHDF5 specific, so no need for full testing) Misc. update:
Diffstat (limited to 'src/H5FPprivate.h')
-rw-r--r--src/H5FPprivate.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/H5FPprivate.h b/src/H5FPprivate.h
index 0502fbe..0abd9cf 100644
--- a/src/H5FPprivate.h
+++ b/src/H5FPprivate.h
@@ -51,6 +51,8 @@ typedef enum {
H5FP_REQ_READ, /* Reading a piece of metadata */
H5FP_REQ_FLUSH, /* Flush the metadata out to disk */
H5FP_REQ_CLOSE, /* Close a file (or eventually an object) */
+ H5FP_REQ_GET_EOA, /* Get end of address space information */
+ H5FP_REQ_SET_EOA, /* Set end of address space information */
H5FP_REQ_STOP, /* Stop SAP */
/* Allocation Requests */
@@ -114,6 +116,7 @@ enum {
H5FP_TAG_READ,
H5FP_TAG_METADATA,
H5FP_TAG_ALLOC,
+ H5FP_TAG_EOA,
H5FP_TAG_DUMP,
H5FP_TAG_FILE_ID
};
@@ -242,6 +245,21 @@ typedef struct {
extern MPI_Datatype H5FP_alloc; /* MPI datatype for the H5FP_alloc obj */
/*===----------------------------------------------------------------------===
+ * H5FP_eoa
+ *===----------------------------------------------------------------------===
+ *
+ * The reply message from the SAP on an H5FP_alloc H5FP_REQ_ALLOC send.
+ */
+typedef struct {
+ unsigned req_id; /* Request ID copied from the SAP_request */
+ unsigned file_id; /* SAP's file ID for the specific file */
+ H5FP_status_t status; /* Status of the request */
+ haddr_t eoa; /* End of address space */
+} H5FP_eoa_t;
+
+extern MPI_Datatype H5FP_eoa; /* MPI datatype for the H5FP_eoa obj */
+
+/*===----------------------------------------------------------------------===
* H5FP_super
*===----------------------------------------------------------------------===
*
@@ -305,6 +323,10 @@ extern herr_t H5FP_request_allocate(H5FD_t *file, H5FD_mem_t mem_type,
extern herr_t H5FP_request_free(H5FD_t *file, H5FD_mem_t mem_type,
haddr_t addr, hsize_t size,
unsigned *req_id, H5FP_status_t *status);
+extern herr_t H5FP_request_get_eoa(H5FD_t *file, haddr_t *eoa, unsigned *req_id,
+ H5FP_status_t *status);
+extern herr_t H5FP_request_set_eoa(H5FD_t *file, haddr_t eoa, unsigned *req_id,
+ H5FP_status_t *status);
extern herr_t H5FP_request_update_eoma_eosda(H5FD_t *file, unsigned *req_id,
H5FP_status_t *status);