Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to improve the recovery logic against trailing invalid index #305

Open
piste-jp opened this issue Aug 6, 2021 · 1 comment
Open
Assignees

Comments

@piste-jp
Copy link
Member

piste-jp commented Aug 6, 2021

Currently, LTFS doesn't have a good logic to recover the 2 cases below.

  1. | index | data | (incomplete) index | eod
  2. | index | data | (incomplete) index eod

Case 1 could be generated by the cam backend when LTFS crashes in the middle of writing index. Case 2 could be generated by low level SCSI backends lile the sg backend at the same condition.

See detail in the PR #302.

@piste-jp
Copy link
Member Author

The point is how to handle the (incomplete) index.

The spec doesn't clear this condition because it doesn't define any "incomplete" condition at all. In my sense, I want to keep the (incomplete) index for analysis when something bad things happen like

  1. | index | data | (incomplete) index | eod - recover -> | index | data | (incomplete) index | index | eod
  2. | index | data | (incomplete) index eod - recover -> | index | data | (incomplete) index | index | eod (add a FM before index)

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

No branches or pull requests

1 participant