Skip to content

Tar seek rework#1

Open
DmitriyKorchemkin wants to merge 3 commits into
rebase_on_3.7.2from
tar-seek-rework
Open

Tar seek rework#1
DmitriyKorchemkin wants to merge 3 commits into
rebase_on_3.7.2from
tar-seek-rework

Conversation

@DmitriyKorchemkin

Copy link
Copy Markdown

Attempt to fix tar seek implementation.

a. Fixed cmake files to make library buildable standalone again
b. Added tests for TAR seek:
- TAR file constructed in memory
- User-provided tar file (via TAR_SEEK_ARCHIVE_PATH)
c. Fixed implementation of tar seek till it started working on the latest recordings after transition to TAR.
- Removed assumption that data starts 512 bytes after header
- Added explicit offset to the start of data entry to avoid re-parsing header on seek to start
- Added restoring of the state on seek.

With those changes, looped playback appears to be working on TAR-based recording files (that is, after seek to start the CAN stream is not mangled at random offset anymore)

Comment thread libarchive/test/CMakeLists.txt Outdated
Comment thread libarchive/archive_read_support_format_tar.c Outdated
@avostrik

Copy link
Copy Markdown

Rebased on top of v3.8.7 and merged to master, this one can be declined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants