diff options
-rw-r--r-- | src/H5FDhdfs.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/H5FDhdfs.c b/src/H5FDhdfs.c index 4978d64..c604c9c 100644 --- a/src/H5FDhdfs.c +++ b/src/H5FDhdfs.c @@ -1760,17 +1760,29 @@ H5FD_hdfs_init(void) herr_t H5Pget_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa_out) { + herr_t ret_value = FAIL; + FUNC_ENTER_API_NOINIT H5TRACE2("e", "i*x", fapl_id, fa_out); - FUNC_LEAVE_API_NOINIT(FAIL) + + HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, FAIL, "HDFS VFD not included in the HDF5 library") + +done: + FUNC_LEAVE_API_NOINIT(ret_value) } herr_t H5Pset_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa) { + herr_t ret_value = FAIL; + FUNC_ENTER_API_NOINIT H5TRACE2("e", "i*x", fapl_id, fa); - FUNC_LEAVE_API_NOINIT(FAIL) + + HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, FAIL, "HDFS VFD not included in the HDF5 library") + +done: + FUNC_LEAVE_API_NOINIT(ret_value) } #endif /* H5_HAVE_LIBHDFS */ |