diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2019-11-27 22:50:01 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2019-11-27 22:50:01 (GMT) |
commit | e23e67798ace036628f291c4f77831a895b67286 (patch) | |
tree | 0d67107cfc7a111540a1efc7374c83f016ee37f3 /src/H5VLnative_file.c | |
parent | 33a5acf8a5782ea05d3510d48b7b63a017c44a62 (diff) | |
download | hdf5-e23e67798ace036628f291c4f77831a895b67286.zip hdf5-e23e67798ace036628f291c4f77831a895b67286.tar.gz hdf5-e23e67798ace036628f291c4f77831a895b67286.tar.bz2 |
Implement file comparison VOL callback. Other changes to allow
references to work with non-native connectors. There is a bug
somewhere.
Diffstat (limited to 'src/H5VLnative_file.c')
-rw-r--r-- | src/H5VLnative_file.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/H5VLnative_file.c b/src/H5VLnative_file.c index 3bda0b8..588d59f 100644 --- a/src/H5VLnative_file.c +++ b/src/H5VLnative_file.c @@ -418,6 +418,19 @@ H5VL__native_file_specific(void *obj, H5VL_file_specific_t specific_type, break; } + /* Check if two files are the same */ + case H5VL_FILE_IS_EQUAL: + { + H5F_t *file2 = (H5F_t *)HDva_arg(arguments, void *); + hbool_t *is_equal = HDva_arg(arguments, hbool_t *); + + if(!obj || !file2) + *is_equal = FALSE; + else + *is_equal = (((H5F_t *)obj)->shared == file2->shared); + break; + } + default: HGOTO_ERROR(H5E_VOL, H5E_UNSUPPORTED, FAIL, "invalid specific operation") } /* end switch */ |