summaryrefslogtreecommitdiffstats
path: root/src/H5FF.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-09-19 23:41:05 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-09-19 23:41:05 (GMT)
commit32ec6c6568fc611a2d16a0c42f88c10d150573af (patch)
tree2398d0ef75590b0bcf9b6540d12774cf254a67fc /src/H5FF.c
parent359d51effedde76636e0a65f0580b6bcfcb5753d (diff)
downloadhdf5-32ec6c6568fc611a2d16a0c42f88c10d150573af.zip
hdf5-32ec6c6568fc611a2d16a0c42f88c10d150573af.tar.gz
hdf5-32ec6c6568fc611a2d16a0c42f88c10d150573af.tar.bz2
[svn-r24173] - update checksum verification to check for properties for enabling/disabling checksums.
- done for raw data, scratch pads. to do KV pairs.
Diffstat (limited to 'src/H5FF.c')
-rw-r--r--src/H5FF.c144
1 files changed, 0 insertions, 144 deletions
diff --git a/src/H5FF.c b/src/H5FF.c
index 9831a9f..c576f7f 100644
--- a/src/H5FF.c
+++ b/src/H5FF.c
@@ -113,150 +113,6 @@ H5FF__init_interface(void)
/*-------------------------------------------------------------------------
- * Function: H5Pset_metadata_integrity_scope
- *
- * Purpose: Set the scope of checksum generation and verification
- * in the FF stack.
- *
- * Return: Non-negative on success/Negative on failure
- *
- * Programmer: Mohamad Chaarawi
- * September 2013
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5Pset_metadata_integrity_scope(hid_t fapl_id, uint32_t scope)
-{
- H5P_genplist_t *plist; /* Property list pointer */
- herr_t ret_value = SUCCEED; /* return value */
-
- FUNC_ENTER_API(FAIL)
-
- if(H5_CHECKSUM_NONE > scope || scope > H5_CHECKSUM_ALL)
- HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "Invalid scope for Data Integrity");
-
- /* Get the plist structure */
- if(NULL == (plist = H5P_object_verify(fapl_id, H5P_FILE_ACCESS)))
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
- /* Set property */
- if(H5P_set(plist, H5VL_CS_BITFLAG_NAME, &scope) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL, "can't set data integrity scope");
-
-done:
- FUNC_LEAVE_API(ret_value)
-} /* end H5Pset_metadata_integrity_scope() */
-
-
-/*-------------------------------------------------------------------------
- * Function: H5Pget_metadata_integrity_scope
- *
- * Purpose: Get the current bit flag indicating the data integrity scope.
- *
- * Return: Non-negative on success/Negative on failure
- *
- * Programmer: Mohamad Chaarawi
- * September 2013
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5Pget_metadata_integrity_scope(hid_t fapl_id, uint32_t *scope)
-{
- H5P_genplist_t *plist; /* Property list pointer */
- herr_t ret_value = SUCCEED; /* return value */
-
- FUNC_ENTER_API(FAIL)
-
- /* Get the plist structure */
- if(NULL == (plist = H5P_object_verify(fapl_id, H5P_FILE_ACCESS)))
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
- if(scope) {
- /* Get property */
- if(H5P_get(plist, H5VL_CS_BITFLAG_NAME, scope) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get scope for data integrity checks");
- }
-
-done:
- FUNC_LEAVE_API(ret_value)
-} /* end H5Pget_metadata_integrity_scope() */
-
-
-/*-------------------------------------------------------------------------
- * Function: H5Pset_rawdata_integrity_scope
- *
- * Purpose: Set the scope of checksum generation and verification
- * in the FF stack.
- *
- * Return: Non-negative on success/Negative on failure
- *
- * Programmer: Mohamad Chaarawi
- * September 2013
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5Pset_rawdata_integrity_scope(hid_t dxpl_id, uint32_t scope)
-{
- H5P_genplist_t *plist; /* Property list pointer */
- herr_t ret_value = SUCCEED; /* return value */
-
- FUNC_ENTER_API(FAIL)
-
- if(H5_CHECKSUM_NONE > scope || scope > H5_CHECKSUM_ALL)
- HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "Invalid scope for Data Integrity");
-
- /* Get the plist structure */
- if(NULL == (plist = H5P_object_verify(dxpl_id, H5P_DATASET_XFER)))
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
- /* Set property */
- if(H5P_set(plist, H5VL_CS_BITFLAG_NAME, &scope) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL, "can't set data integrity scope");
-
-done:
- FUNC_LEAVE_API(ret_value)
-} /* end H5Pset_rawdata_integrity_scope() */
-
-
-/*-------------------------------------------------------------------------
- * Function: H5Pget_rawdata_integrity_scope
- *
- * Purpose: Get the current bit flag indicating the data integrity scope.
- *
- * Return: Non-negative on success/Negative on failure
- *
- * Programmer: Mohamad Chaarawi
- * September 2013
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5Pget_rawdata_integrity_scope(hid_t dxpl_id, uint32_t *scope)
-{
- H5P_genplist_t *plist; /* Property list pointer */
- herr_t ret_value = SUCCEED; /* return value */
-
- FUNC_ENTER_API(FAIL)
-
- /* Get the plist structure */
- if(NULL == (plist = H5P_object_verify(dxpl_id, H5P_DATASET_XFER)))
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
- if(scope) {
- /* Get property */
- if(H5P_get(plist, H5VL_CS_BITFLAG_NAME, scope) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get scope for data integrity checks");
- }
-
-done:
- FUNC_LEAVE_API(ret_value)
-} /* end H5Pget_rawdata_integrity_scope() */
-
-
-/*-------------------------------------------------------------------------
* Function: H5Fcreate_ff
*
* Purpose: Asynchronous wrapper around H5Fcreate().