LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
256 stars 76 forks source link

Report an error when write perm happens while writing an index on DP at sync #316

Closed piste-jp closed 3 years ago

piste-jp commented 3 years ago

Summary of changes

This pull request includes following changes or fixes.

Description

At this time, there is a small chance that LTFS returns good even if all accepted file contents aren't written down to tape when ltfs_write_index() returns WRITE_PERM. So I changed to the code to return error at this condition.

Fixes #315

Type of change

Checklist:

piste-jp commented 3 years ago

Merged to master by cherry-pick