Skip to content

Assume cart type fron density as fallback for unknown cart type - #639

Closed
dylanetaft wants to merge 1 commit into
LinearTapeFileSystem:release/v2.4.9.2from
dylanetaft:cart_type_fix
Closed

dylanetaft wants to merge 1 commit into
LinearTapeFileSystem:release/v2.4.9.2from
dylanetaft:cart_type_fix

Conversation

@dylanetaft

Copy link
Copy Markdown

Summary of changes

This pull request includes following changes or fixes.

Description

Adds a fallback method of cart_type setting - if sens data is unknown cart

Type of change

  • Bug fix
  • New feature
  • Refactoring

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have confirmed my fix is effective or that my feature works

Please do review, the fallback will run for any tape drive that didn't get a known cart_type back from sense data, not specific to vendor

@JachymT

JachymT commented Sep 4, 2026

Copy link
Copy Markdown

i was having the same issue i hope this gets merged!

@dylanetaft

Copy link
Copy Markdown
Author

The only caveat is that it's code to maintain when a new LTO tape version comes out. But it's just adding a case statement, and probably avoiding more complex code, and the type from density code should be updated anyway too when new tape versions come out so it's not bad.

@rangelmx
rangelmx changed the base branch from main to release/v2.4.9.2 November 17, 2026 20:50
@rangelmx

Copy link
Copy Markdown
Contributor

Hi @dylanetaft ! We agreed that this change can be merged into our next release, 2.4.9.2. Since for the previous release process some PRs got squashed, git might be marking some changes incorrectly in this PR when we switched the base branch, if this happened please merge your branch with the release/2.4.9.2 and please confirm there are no conflicts so we can merge it with the new release branch. Thank you for your contribution!

@dylanetaft dylanetaft closed this by deleting the head repository Nov 26, 2026
@dylanetaft

dylanetaft commented Nov 26, 2026 •

Copy link
Copy Markdown
Author

I tried to merge, could not. I personally need fuse3 patches from @matejk to land to test this, I do not have fuse2 on my system. As a general statement, this patch still works, but the ltfsmsg call site and message in root.txt has to be changed to the next free message identifier - currently 30301I

I can submit another PR...it may take time as I will need to cherry pick stuff from @matejk's personal repos to even be able to compile LTFS again on my system.

I have been using the custom built ltfs binaries with this patch and fuse3 for several months without issue.

@dylanetaft

dylanetaft commented Nov 26, 2026 •

Copy link
Copy Markdown
Author

0001-Assume-cart-type-fron-density-as-fallback-for-unknow.patch

I updated this but it may be a bit before I can test again and do a new PR...I won't be able to test currently as matejk's private repo is built against 2.4.9.1 and runs into the same issue - the error IDs were stepped on in 2.4.9.2 among other merge issues...I could try to resolve merge conflicts with his repo...

It might make sense for one of the primary devs to pull this patch into their repo though and let it eventually get upstream that way...I might just wait and cross my fingers for him to rebase to 2.4.9.2 then I'll try again...

Redone as #673

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.

5 participants