summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r--src/H5Pfapl.c300
1 files changed, 150 insertions, 150 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index 9868627..0a9e29e 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -62,7 +62,7 @@ static herr_t H5P_get_multi_type(H5P_genplist_t *plist, H5FD_mem_t *type);
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed file access property list mechanism to the new
+ * Changed file access property list mechanism to the new
* generic property list.
*-------------------------------------------------------------------------
*/
@@ -71,7 +71,7 @@ H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_alignment, FAIL);
H5TRACE3("e","ihh",fapl_id,threshold,alignment);
@@ -108,9 +108,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
*
*-------------------------------------------------------------------------
@@ -164,7 +164,7 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
*
*-------------------------------------------------------------------------
@@ -175,7 +175,7 @@ H5P_set_driver(H5P_genplist_t *plist, hid_t new_driver_id, const void *new_drive
hid_t driver_id; /* VFL driver ID */
void *driver_info; /* VFL driver info */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5P_set_driver, FAIL);
if (NULL==H5I_object_verify(new_driver_id, H5I_VFL))
@@ -240,7 +240,7 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
*
*-------------------------------------------------------------------------
@@ -250,7 +250,7 @@ H5Pset_driver(hid_t plist_id, hid_t new_driver_id, const void *new_driver_info)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pset_driver, FAIL);
H5TRACE3("e","iix",plist_id,new_driver_id,new_driver_info);
@@ -290,15 +290,15 @@ done:
* Rewritten to use the virtual file layer.
*
* Robb Matzke, 1999-08-05
- * If the driver ID is H5FD_VFD_DEFAULT then substitute the
+ * If the driver ID is H5FD_VFD_DEFAULT then substitute the
* current value of H5FD_SEC2.
*
* Quincey Koziol 2000-11-28
* Added internal function..
*
* Raymond Lu, 2001-10-23
- * Changed the file access list design to the new generic
- * property list.
+ * Changed the file access list design to the new generic
+ * property list.
*
*-------------------------------------------------------------------------
*/
@@ -396,9 +396,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -418,7 +418,7 @@ H5P_get_driver_info(H5P_genplist_t *plist)
} else {
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access or data transfer property list");
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5P_get_driver_info() */
@@ -445,9 +445,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -463,7 +463,7 @@ H5Pget_driver_info(hid_t plist_id)
if((ret_value=H5P_get_driver_info(plist))==NULL)
HGOTO_ERROR(H5E_PLIST,H5E_CANTGET,NULL,"can't get driver info");
-
+
done:
FUNC_LEAVE_API(ret_value);
} /* end H5Pget_driver_info() */
@@ -471,20 +471,20 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_family_offset
- *
+ *
* Purpose: Set offset for family driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
- * Return: Success: Non-negative value.
- *
- * Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Return: Success: Non-negative value.
+ *
+ * Failure: Negative value.
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -504,7 +504,7 @@ H5Pset_family_offset(hid_t fapl_id, hsize_t offset)
/* Set values */
if((ret_value=H5P_set_family_offset(plist, offset)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set family offset");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -512,19 +512,19 @@ done:
/*-------------------------------------------------------------------------
* Function: H5P_set_family_offset
- *
- * Purpose: Set offset for family driver. Private function for
+ *
+ * Purpose: Set offset for family driver. Private function for
* H5Pset_family_offset
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
+ *
+ * Programmer: Raymond Lu
* Sep 17, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -544,24 +544,24 @@ H5P_set_family_offset(H5P_genplist_t *plist, hsize_t offset)
done:
FUNC_LEAVE_NOAPI(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5Pget_family_offset
- *
+ *
* Purpose: Get offset for family driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -569,10 +569,10 @@ H5Pget_family_offset(hid_t fapl_id, hsize_t *offset)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_family_offset, FAIL);
H5TRACE2("e","i*h",fapl_id,offset);
-
+
/* Get the plist structure */
if(H5P_DEFAULT == fapl_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "can't modify default property list");
@@ -581,64 +581,64 @@ H5Pget_family_offset(hid_t fapl_id, hsize_t *offset)
/* Set values */
if((ret_value=H5P_get_family_offset(plist, offset)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't get family offset");
-
-done:
+
+done:
FUNC_LEAVE_API(ret_value);
-}
+}
/*-------------------------------------------------------------------------
* Function: H5P_get_family_offset
- *
+ *
* Purpose: Get offset for family driver. Private function for
* H5Pget_family_offset
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
H5P_get_family_offset(H5P_genplist_t *plist, hsize_t *offset)
{
herr_t ret_value=SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5P_get_family_offset, FAIL);
-
+
if( TRUE == H5P_isa_class(plist->plist_id, H5P_FILE_ACCESS) ) {
if(H5P_get(plist, H5F_ACS_FAMILY_OFFSET_NAME, offset) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL,"can't set offset for family file");
- } else {
+ } else {
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access or data transfer property list");
- }
-
+ }
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5Pset_multi_type
- *
+ *
* Purpose: Set data type for multi driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
+ *
+ * Programmer: Raymond Lu
* Sep 17, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -658,7 +658,7 @@ H5Pset_multi_type(hid_t fapl_id, H5FD_mem_t type)
/* Set values */
if((ret_value=H5P_set_multi_type(plist, type)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set data type for multi driver");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -666,19 +666,19 @@ done:
/*-------------------------------------------------------------------------
* Function: H5P_set_multi_type
- *
+ *
* Purpose: Set data type for multi file driver. Private function for
* H5Pset_multi_type.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
+ *
+ * Programmer: Raymond Lu
* Sep 17, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -697,25 +697,25 @@ H5P_set_multi_type(H5P_genplist_t *plist, H5FD_mem_t type)
done:
FUNC_LEAVE_NOAPI(ret_value);
-}
+}
/*-------------------------------------------------------------------------
* Function: H5Pget_multi_type
- *
+ *
* Purpose: Get data type for multi driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -723,10 +723,10 @@ H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_multi_type, FAIL);
H5TRACE2("e","i*Mt",fapl_id,type);
-
+
/* Get the plist structure */
if(H5P_DEFAULT == fapl_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "can't modify default property list");
@@ -735,46 +735,46 @@ H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type)
/* Set values */
if((ret_value=H5P_get_multi_type(plist, type)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't get data type for multi driver");
-
-done:
- FUNC_LEAVE_API(ret_value);
-}
+
+done:
+ FUNC_LEAVE_API(ret_value);
+}
/*-------------------------------------------------------------------------
* Function: H5P_get_multi_type
- *
+ *
* Purpose: Get data type for multi file driver. Private function for
* H5Pget_multi_type.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
H5P_get_multi_type(H5P_genplist_t *plist, H5FD_mem_t *type)
{
herr_t ret_value=SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5P_get_multi_type, FAIL);
-
+
if( TRUE == H5P_isa_class(plist->plist_id, H5P_FILE_ACCESS) ) {
- if(H5P_get(plist, H5F_ACS_MULTI_TYPE_NAME, type) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL,"can't get type for multi driver");
- } else {
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list");
- }
-
+ if(H5P_get(plist, H5F_ACS_MULTI_TYPE_NAME, type) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL,"can't get type for multi driver");
+ } else {
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list");
+ }
+
done:
FUNC_LEAVE_NOAPI(ret_value);
-}
+}
/*-------------------------------------------------------------------------
@@ -799,7 +799,7 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
* Changed the file access list to the new generic property list.
*
@@ -807,7 +807,7 @@ done:
* Thurs. 3/17/05
* The mdc_nelmts entry is no more in the FAPL, so I modified
* the code to ignore it.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -816,7 +816,7 @@ H5Pset_cache(hid_t plist_id, int UNUSED mdc_nelmts,
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_cache, FAIL);
H5TRACE5("e","iIszzd",plist_id,mdc_nelmts,rdcc_nelmts,rdcc_nbytes,rdcc_w0);
@@ -859,14 +859,14 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
* J Mainzer
* Thurs, 3/17/05
* The mdc_nelmts fapl entry is no more, so we now just
* return a constant when that value is requested.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -875,7 +875,7 @@ H5Pget_cache(hid_t plist_id, int *mdc_nelmts,
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_cache, FAIL);
H5TRACE5("e","i*Is*z*z*d",plist_id,mdc_nelmts,rdcc_nelmts,rdcc_nbytes,
rdcc_w0);
@@ -908,7 +908,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_mdc_config
*
- * Purpose: Set the initial metadata cache resize configuration in the
+ * Purpose: Set the initial metadata cache resize configuration in the
* target FAPL.
*
* Return: Non-negative on success/Negative on failure
@@ -919,16 +919,16 @@ done:
* Modifications:
*
* Done.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
-H5Pset_mdc_config(hid_t plist_id,
+H5Pset_mdc_config(hid_t plist_id,
H5AC_cache_config_t *config_ptr)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_mdc_config, FAIL);
H5TRACE2("e","ix",plist_id,config_ptr);
@@ -947,7 +947,7 @@ H5Pset_mdc_config(hid_t plist_id,
/* set the modified config */
- /* If we ever support multiple versions of H5AC_cache_config_t, we
+ /* If we ever support multiple versions of H5AC_cache_config_t, we
* will have to test the version and do translation here.
*/
@@ -956,7 +956,7 @@ H5Pset_mdc_config(hid_t plist_id,
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, \
"can't set metadata cache initial config");
}
-
+
done:
FUNC_LEAVE_API(ret_value);
@@ -982,17 +982,17 @@ done:
* Modifications:
*
* None.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
-H5Pget_mdc_config(hid_t plist_id,
+H5Pget_mdc_config(hid_t plist_id,
H5AC_cache_config_t *config_ptr)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value = SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_mdc_config, FAIL);
H5TRACE2("e","ix",plist_id,config_ptr);
@@ -1056,11 +1056,11 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -1100,9 +1100,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -1135,8 +1135,8 @@ done:
*
* Return: Non-negative on success/Negative on failure
*
- * Programmer: Raymond Lu
- * November, 2001
+ * Programmer: Raymond Lu
+ * November, 2001
*
* Modifications:
*
@@ -1167,12 +1167,12 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pget_fclose_degree
*
- * Purpose: Returns the degree for the file close behavior.
+ * Purpose: Returns the degree for the file close behavior.
*
* Return: Non-negative on success/Negative on failure
*
- * Programmer: Raymond Lu
- * November, 2001
+ * Programmer: Raymond Lu
+ * November, 2001
*
* Modifications:
*
@@ -1189,12 +1189,12 @@ herr_t H5Pget_fclose_degree(hid_t plist_id, H5F_close_degree_t *degree)
if(NULL == (plist = H5P_object_verify(plist_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
- if( degree && (H5P_get(plist, H5F_CLOSE_DEGREE_NAME, degree) < 0) )
+ if( degree && (H5P_get(plist, H5F_CLOSE_DEGREE_NAME, degree) < 0) )
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get file close degree");
done:
FUNC_LEAVE_API(ret_value);
-}
+}
/*-------------------------------------------------------------------------
@@ -1205,7 +1205,7 @@ done:
* Each "raw" metadata block is allocated to be this size and then
* specific pieces of metadata (object headers, local heaps, B-trees, etc)
* are sub-allocated from this block.
- *
+ *
* The default value is set to 2048 (bytes), indicating that metadata
* will be attempted to be bunched together in (at least) 2K blocks in
* the file. Setting the value to 0 with this API function will
@@ -1221,8 +1221,8 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
- * list.
+ * Changed the file access list to the new generic property
+ * list.
*
*-------------------------------------------------------------------------
*/
@@ -1261,9 +1261,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1301,7 +1301,7 @@ done:
* buffer which is large anough to hold several pieces of the dataset
* being read in for hyperslab selections boosts performance by quite a
* bit.
- *
+ *
* The default value is set to 64KB, indicating that file I/O for raw data
* reads and writes will occur in at least 64KB blocks.
* Setting the value to 0 with this API function will turn off the
@@ -1314,9 +1314,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1326,7 +1326,7 @@ H5Pset_sieve_buf_size(hid_t plist_id, size_t size)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_sieve_buf_size, FAIL);
H5TRACE2("e","iz",plist_id,size);
@@ -1356,9 +1356,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1394,7 +1394,7 @@ done:
* Each "small" raw data block is allocated to be this size and then
* pieces of raw data which are small enough to fit are sub-allocated from
* this block.
- *
+ *
* The default value is set to 2048 (bytes), indicating that raw data
* smaller than this value will be attempted to be bunched together in (at
* least) 2K blocks in the file. Setting the value to 0 with this API