summaryrefslogtreecommitdiffstats
path: root/src/H5FDprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-03-27 20:21:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-03-27 20:21:34 (GMT)
commite9e9c14f88c5469edf8c56813db8e7d40823367a (patch)
tree0d10fb70991656e0b6d1e9234a15a5e8568b8e9b /src/H5FDprivate.h
parent5b47012a0d83dccc7988b51d8a0658086b4268a1 (diff)
downloadhdf5-e9e9c14f88c5469edf8c56813db8e7d40823367a.zip
hdf5-e9e9c14f88c5469edf8c56813db8e7d40823367a.tar.gz
hdf5-e9e9c14f88c5469edf8c56813db8e7d40823367a.tar.bz2
[svn-r5094] Purpose:
Bug Fix Description: The H5Gget_objinfo() function was not setting the 'fileno' field in the H5G_stat_t struct passed in. Solution: Added a "file serial number" to each file currently open in the library and put that in the 'fileno' field. If a file is opened twice (with H5Fopen) and the VFL driver detects that it is the same file (i.e. the two file structures have the same "shared file info" in the library's memory structures), they will have the same serial number. This serial number has two drawbacks: - If a VFL driver doesn't/can't detect that two calls to H5Fopen with the same file actually _are_ the same file, each will get a different serial number - If the same file is closed and re-opened, the serial number will be different. It is be possible to fix the second drawback for many VFL drivers, but it would be a lot of effort and probably isn't worth it until we've got a good reason to do it. Dunno if we'll ever be able to fix the first drawback... Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'src/H5FDprivate.h')
-rw-r--r--src/H5FDprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5FDprivate.h b/src/H5FDprivate.h
index 70f83d5..9d1dc3a 100644
--- a/src/H5FDprivate.h
+++ b/src/H5FDprivate.h
@@ -39,5 +39,6 @@ __DLL__ herr_t H5FD_read(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t a
__DLL__ herr_t H5FD_write(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t size,
const void *buf);
__DLL__ herr_t H5FD_flush(H5FD_t *file);
+__DLL__ herr_t H5FD_get_fileno(const H5FD_t *file, unsigned long *filenum);
#endif /* !_H5FDprivate_H */