diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-21 20:20:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-21 20:20:13 (GMT) |
commit | 127dc2f80db940c9bd7b69bedf7383ad55ed8d81 (patch) | |
tree | 19834c9f8bf8288ddaa943b7bb79cbeaddd36fea /src/H5D.c | |
parent | ba63879ea20145e9778c4ba2c7d9ec8134f1b7d0 (diff) | |
download | hdf5-127dc2f80db940c9bd7b69bedf7383ad55ed8d81.zip hdf5-127dc2f80db940c9bd7b69bedf7383ad55ed8d81.tar.gz hdf5-127dc2f80db940c9bd7b69bedf7383ad55ed8d81.tar.bz2 |
[svn-r6308] Purpose:
Bug fix
Description:
Currently, when the library encounters an object header message that isn't
know, it fails to open that object in the file.
Solution:
Allow the library to skip over the unknown object header message and
continue to process the remaining messages, in the hope that the skipped
message isn't important later. If it is important, it will be caught at
a higher level of the library.
Platforms tested:
FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1671,6 +1671,14 @@ H5D_update_entry_info(H5F_t *file, H5D_t *dset, H5P_genplist_t *plist) if (H5D_COMPACT != layout->type && H5O_append(file, oh, H5O_LAYOUT, 0, layout) < 0) HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to update layout"); +#ifdef H5O_ENABLE_BOGUS + /* + * Add a "bogus" message. + */ + if (H5O_bogus_oh(file, oh))<0) + HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to update 'bogus' message"); +#endif /* H5O_ENABLE_BOGUS */ + /* Add a modification time message. */ if (H5O_touch_oh(file, oh, TRUE) < 0) HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to update modification time message"); |