Add datasetio support#110
Closed
sachintu47 wants to merge 21 commits into
Closed
Conversation
- Refactor DatasetEntry to support byte-stream emulation with record buffering. - Implement newline insertion/stripping and record padding for FB datasets. - Optimize FB dataset I/O by reopening in binary mode for multi-record access. - Add VB size caching to improve performance of fstat and SEEK_END. - Fix write_dataset to prevent data loss at record boundaries and add bounds checking. - Use length-safe dsio_convert_buffer for all CCSID conversions. - Consolidate entry initialization and simplify redundant size checks.
…et to prevent tools like ggrep from incorrectly identifying datasets as stdout
…os in dataset I/O
…g FB seeks. Enables runtime debug logging via ZOSLIB_DEBUG and implements size caching.
- Added ZOSLIB_ENABLE_DATASETIO compilation flag (defaults to 0). - Added __DATASET_SUPPORT environment variable for runtime control. - Consolidated DatasetEntry struct and cleaned up redundant functions. - Defaulted dataset support to disabled at both compile and runtime.
- Added ZOSLIB_ENABLE_DATASETIO option to CMakeLists.txt (default OFF). - Added -d flag to build.sh to enable dataset I/O support during build.
…tat/dsio_get_size Harden error paths: fix zos_fcntl null-deref, close_dataset write-mode check, generate_name errno, and reduce noisy debug logging.
Collaborator
Author
|
augment review |
|
Augment review isn't setup in ibmruntimes/ org :) |
Collaborator
Author
|
Moved to zopencommunity#1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapted majority of the work from https://github.com/zopencommunity/libdio.
Code changes added
Pending