LinearTapeFileSystem / LinearTapeFileSystem/ltfs

Stop writing an index at failing to write cache file

Open
#333 0 comments 0 reactions 1 assignee View on GitHub

@piste-jp is already working on this.

Since Jan 26, 2022.

bug
Dominant language
C
Stars
352
Forks
110
Avg merge
2h 50m
Merged PRs (30d)
2

Description

Describe the bug

Current code might stop writing an index and report an error when a write() call for index cache fails in xml_output_tape_write_callback().

Expected behavior

Write entire index to the tape even if cache file write is failed. And report this error after writing an index.

Additional context

May be same thing shall be done in the read side.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.