Skip to content

SDwritedata cannot change data of a compressed SDS after SDreaddata #855

@bmribler

Description

@bmribler

Original issue: HDFFR-1356

When SDwritedata is called after SDreaddata, it cannot modify the data of a compressed data set. Note that this happens even in the case of writing the entire data set, which is supposed to work.

The problem can be reproduced using the files in this directory on jam: /mnt/hdf/qa/bugs/HDFFR-1343

SDScompressed.hdf is the original file containing one compressed SDS.
SDScompressed_wread.hdf is its copy to show whether the data was changed or not.

Keeping the SDendaccess/SDselect combo between SDreaddata and SDwritedata in the sample program modify_comp_SDS.c will show the values 887 being written in the SDS. Now, copy SDScompressed.hdf to SDScompressed_wread.hdf and try again with SDendaccess/SDselect commented out, 887 will not appear in the data. 887 is just a random value to show the changes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions