summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative_file.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2019-11-27 22:50:01 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:17 (GMT)
commit22ad1bd668de4332c88548591866d1b5e64bd09e (patch)
treec60b9f797cbcb5eb0db7bdd927846abd12330ed5 /src/H5VLnative_file.c
parent267b97c3ea66f4500244b0426fcc3f4bab5c010a (diff)
downloadhdf5-22ad1bd668de4332c88548591866d1b5e64bd09e.zip
hdf5-22ad1bd668de4332c88548591866d1b5e64bd09e.tar.gz
hdf5-22ad1bd668de4332c88548591866d1b5e64bd09e.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.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/H5VLnative_file.c b/src/H5VLnative_file.c
index 4dd3116..364e6fe 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 */