summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-04-21 20:32:07 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-04-21 20:32:07 (GMT)
commit91a34f543da20aee0de3ad2ec2cc58f86750bcf6 (patch)
treed538ec3a0fba6996818c33ee57661bb1cc4ce209 /src/H5D.c
parent54256b22c0fb6a38d1b33e531ef617b00c013ea6 (diff)
downloadhdf5-91a34f543da20aee0de3ad2ec2cc58f86750bcf6.zip
hdf5-91a34f543da20aee0de3ad2ec2cc58f86750bcf6.tar.gz
hdf5-91a34f543da20aee0de3ad2ec2cc58f86750bcf6.tar.bz2
[svn-r355] Changes since 19980417
---------------------- This checkin completes the compression stuff almost two weeks ahead of schedule. It should now all be working and documented. ./Makefile.in ./config/commence.in A distclean causes the distribution makefile to be copied to Makefile again. ./src/H5D.c Opening a compressed dataset now works properly. ./src/H5P.c ./src/H5Ppublic.h The H5Pset_compression() and H5Pget_compression() now work as documented. ./src/H5T.c Fixed a bug that causes the library to crash sometimes if debugging is turned on for the `t' package. ./src/H5Z.c Fixed a bug where the number of bytes attributed to compression overruns was too low in the debugging output. ./test/dsets.c More compression tests: reading of uninitialized data, opening an existing dataset and reading it, partial I/O which isn't aligned on chunk boundaries, and use of application-defined compression methods. ./MANIFEST Removed ./test/dspace.c.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index a49727a..45ed334 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -969,6 +969,14 @@ H5D_open(H5G_t *loc, const char *name)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL,
"unable to load type or space info from dataset header");
}
+
+ /* Get the optional compression message */
+ if (NULL==H5O_read (&(dataset->ent), H5O_COMPRESS, 0,
+ &(dataset->create_parms->compress))) {
+ H5E_clear ();
+ HDmemset (&(dataset->create_parms->compress), 0,
+ sizeof(dataset->create_parms->compress));
+ }
/*
* Get the raw data layout info. It's actually stored in two locations: