summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-11-18 06:38:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-11-18 06:38:29 (GMT)
commit59c28780d35924b6512fe18a0eeb49d55e03f0fc (patch)
treebdd44330be65979327d3c45e972dfea1325bd66e /src/H5VLnative.c
parente2ed2edf6ef1111b1f9962bd44f8f76612adf8d0 (diff)
downloadhdf5-59c28780d35924b6512fe18a0eeb49d55e03f0fc.zip
hdf5-59c28780d35924b6512fe18a0eeb49d55e03f0fc.tar.gz
hdf5-59c28780d35924b6512fe18a0eeb49d55e03f0fc.tar.bz2
Add VOL connector info to the flie access property list returned from
H5Fget_access_plist(). Also, other misc. cleanups, etc.
Diffstat (limited to 'src/H5VLnative.c')
-rw-r--r--src/H5VLnative.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/H5VLnative.c b/src/H5VLnative.c
index bf847c5..e506af4 100644
--- a/src/H5VLnative.c
+++ b/src/H5VLnative.c
@@ -1685,13 +1685,13 @@ H5VL__native_file_specific(void *obj, H5VL_file_specific_t specific_type,
/* Call the flush routine for mounted file hierarchies */
if(H5F_flush_mounts(f) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTFLUSH, FAIL, "unable to flush mounted file hierarchy")
- }
+ } /* end if */
else {
/* Call the flush routine, for this file */
if(H5F__flush(f) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTFLUSH, FAIL, "unable to flush file's cached information")
- }
- }
+ } /* end else */
+ } /* end if */
break;
}
@@ -1759,6 +1759,18 @@ H5VL__native_file_specific(void *obj, H5VL_file_specific_t specific_type,
break;
}
+ /* H5Fcreate / H5Fopen */
+ case H5VL_FILE_CACHE_VOL_CONN:
+ {
+ hid_t vol_id = va_arg(arguments, hid_t);
+ void *vol_info = va_arg(arguments, void *);
+
+ /* Call private routine */
+ if(H5F__set_vol_conn((H5F_t *)obj, vol_id, vol_info) < 0)
+ HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "cache VOL connector ID & info failed")
+ break;
+ }
+
default:
HGOTO_ERROR(H5E_VOL, H5E_UNSUPPORTED, FAIL, "invalid specific operation")
} /* end switch */