summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2000-12-29 18:35:19 (GMT)
committerRobb Matzke <matzke@llnl.gov>2000-12-29 18:35:19 (GMT)
commitd46c85a973458e1adbdc4dbf773f3e6b15734891 (patch)
treead84d59f8aceb6caaa22bebc77987a6c49dc5e2d /src
parent476e9a05ac021a6f02c7795075f048e1bf650692 (diff)
downloadhdf5-d46c85a973458e1adbdc4dbf773f3e6b15734891.zip
hdf5-d46c85a973458e1adbdc4dbf773f3e6b15734891.tar.gz
hdf5-d46c85a973458e1adbdc4dbf773f3e6b15734891.tar.bz2
[svn-r3218] ./hdf5/src/H5FDlog.c
2000-12-29 08:55:06 Robb Matzke <matzke@llnl.gov> * H5FD_log_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/H5FDlog.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index af40afc..d56755b 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -188,10 +188,10 @@ static const H5FD_class_t H5FD_log_g = {
NULL, /*sb_size */
NULL, /*sb_encode */
NULL, /*sb_decode */
- sizeof(H5FD_log_fapl_t), /*fapl_size */
- H5FD_log_fapl_get, /*fapl_get */
- H5FD_log_fapl_copy, /*fapl_copy */
- H5FD_log_fapl_free, /*fapl_free */
+ sizeof(H5FD_log_fapl_t), /*fapl_size */
+ H5FD_log_fapl_get, /*fapl_get */
+ H5FD_log_fapl_copy, /*fapl_copy */
+ H5FD_log_fapl_free, /*fapl_free */
0, /*dxpl_size */
NULL, /*dxpl_copy */
NULL, /*dxpl_free */
@@ -624,7 +624,7 @@ H5FD_log_cmp(const H5FD_t *_f1, const H5FD_t *_f2)
* Function: H5FD_log_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
*
@@ -646,10 +646,11 @@ H5FD_log_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);
}