diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-12-07 22:21:07 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-12-07 22:21:07 (GMT) |
commit | 16a5c7c8f309042c7bb3a40cdb4c60f5b2c587c2 (patch) | |
tree | 5d306581d541a99f19d269e1d5a3425527a8a43b /src/H5FD.c | |
parent | f3dfc133cc68a8dfc285ae9e7e9cf85216bb3dcf (diff) | |
parent | feaaae4897d4c2d9f83a2f93224123a4c5e009c7 (diff) | |
download | hdf5-16a5c7c8f309042c7bb3a40cdb4c60f5b2c587c2.zip hdf5-16a5c7c8f309042c7bb3a40cdb4c60f5b2c587c2.tar.gz hdf5-16a5c7c8f309042c7bb3a40cdb4c60f5b2c587c2.tar.bz2 |
Merge branch 'develop' into eoc_h5fs_fix
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -811,6 +811,9 @@ H5FD_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr) if(NULL == (file = (driver->open)(name, flags, fapl_id, maxaddr))) HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, NULL, "open failed") + /* Set the file access flags */ + file->access_flags = flags; + /* * Fill in public fields. We must increment the reference count on the * driver ID to prevent it from being freed while this file is open. @@ -1441,6 +1444,32 @@ H5FD_get_feature_flags(const H5FD_t *file, unsigned long *feature_flags) /*------------------------------------------------------------------------- + * Function: H5FD_set_feature_flags + * + * Purpose: Set the feature flags for the VFD + * + * Return: Success: Non-negative + * Failure: Negative + * + * Programmer: Vailin Choi; Oct 2013 + * + *------------------------------------------------------------------------- + */ +herr_t +H5FD_set_feature_flags(H5FD_t *file, unsigned long feature_flags) +{ + FUNC_ENTER_NOAPI_NOINIT_NOERR + + HDassert(file); + + /* Set the file's feature flags */ + file->feature_flags = feature_flags; + + FUNC_LEAVE_NOAPI(SUCCEED) +} /* end H5FD_set_feature_flags() */ + + +/*------------------------------------------------------------------------- * Function: H5FD_get_fs_type_map * * Purpose: Retrieve the free space type mapping for the VFD |