summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2000-12-29 18:35:25 (GMT)
committerRobb Matzke <matzke@llnl.gov>2000-12-29 18:35:25 (GMT)
commit8418ba1e641ccb171d86c4b543e185dbaca45603 (patch)
treeec1176a85e2cbe4ed5acc3ac635a7010d92f73ee /src
parent0220abb8cddeaccd0b579b3e493ec456f7a01ee8 (diff)
downloadhdf5-8418ba1e641ccb171d86c4b543e185dbaca45603.zip
hdf5-8418ba1e641ccb171d86c4b543e185dbaca45603.tar.gz
hdf5-8418ba1e641ccb171d86c4b543e185dbaca45603.tar.bz2
[svn-r3222] ./hdf5/src/H5FDsec2.c
2000-12-29 08:56:22 Robb Matzke <matzke@llnl.gov> * H5FD_sec2_query: The `flags' argument is advertised to be output only. Therefore I added code to zero its value before the feature bits are assigned.
Diffstat (limited to 'src')
-rw-r--r--src/H5FDsec2.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index df25737..5182a98 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -156,10 +156,10 @@ static const H5FD_class_t H5FD_sec2_g = {
0, /*dxpl_size */
NULL, /*dxpl_copy */
NULL, /*dxpl_free */
- H5FD_sec2_open, /*open */
- H5FD_sec2_close, /*close */
- H5FD_sec2_cmp, /*cmp */
- H5FD_sec2_query, /*query */
+ H5FD_sec2_open, /*open */
+ H5FD_sec2_close, /*close */
+ H5FD_sec2_cmp, /*cmp */
+ H5FD_sec2_query, /*query */
NULL, /*alloc */
NULL, /*free */
H5FD_sec2_get_eoa, /*get_eoa */
@@ -403,7 +403,7 @@ H5FD_sec2_cmp(const H5FD_t *_f1, const H5FD_t *_f2)
* Function: H5FD_sec2_query
*
* Purpose: Set the flags that this VFL driver is capable of supporting.
- * (listed in H5FDpublic.h)
+ * (listed in H5FDpublic.h)
*
* Return: Success: non-negative
*
@@ -425,10 +425,11 @@ H5FD_sec2_query(const H5FD_t UNUSED *_f, unsigned long *flags /* out */)
/* Set the VFL feature flags that this driver supports */
if(flags) {
+ *flags = 0;
*flags|=H5FD_FEAT_AGGREGATE_METADATA; /* OK to aggregate metadata allocations */
*flags|=H5FD_FEAT_ACCUMULATE_METADATA; /* OK to accumulate metadata for faster writes */
*flags|=H5FD_FEAT_DATA_SIEVE; /* OK to perform data sieving for faster raw data reads & writes */
- } /* end if */
+ }
FUNC_LEAVE(ret_value);
}