Comments (6)
Can you try the cleanup
branch on jmwilson/stenc
? I'm unable to get a blank tape to trigger this sense code. The old code would ignore all errors in the next block encryption status query, so I added a media access check but my hardware will not report a blank tape.
from stenc.
Can you try the
cleanup
branch onjmwilson/stenc
?
Still the same error, blank tape. But it fixes #72
If I add O_NONBLOCK flag to line
Line 92 in f5856d7
it also fixes #12 (under Linux)
from stenc.
This could be a drive firmware bug then. HP docs say this about the blank tape sense key:
If “blank media” is encountered during a space (in other words, the drive attempted to space on an unformatted tape), the drive behaves as if EOD was at BOM. It will then respond with GOOD status to a request to space to EOD, and with CHECK CONDITION to any other forward spacing request. Additional sense is set to 1403h (End of data not found).
Requesting status will not move the tape. The firmware might be incorrectly returning this code during the normal media access check when the next block encryption status page is processed. An erased tape returns Volume Encryption: Unable to determine
on a HP LTO-6.
The old code simply ignored all errors from the next block encryption status query, but this probably not good in general. It sounds like the best idea to ignore BLANK CHECK sense key in this specific case.
from stenc.
@sunwire I forced pushed the cleanup branch again with a check for the BLANK CHECK sense - can you see if this handles your situation?
from stenc.
can you see if this handles your situation?
Everything works!
from stenc.
Fixed
from stenc.
Related Issues (20)
- Error when compiling for freeBSD HOT 9
- warning: The preprocessor macro `STDC_HEADERS' is obsolete. HOT 1
- LTO-9 density code not mapped HOT 3
- Invalid argument (Invalid IOCTL call) when using lin_tape device driver? (RHEL9 & ULT3580-HH8) HOT 2
- ./configure syntax error on line 4556 in CentOS 7.9 HOT 3
- man page REPORTING BUGS HOT 2
- Considering C++17 as minimum requirement HOT 5
- Wrong version in the configure.ac
- CI needs pandoc HOT 6
- Drop support for AIX? HOT 2
- New IBM LTO8 drive firmware returns 0x24 error HOT 4
- Header of manpage is missing HOT 1
- stenc should not move the tape
- List new dependencies in changelog
- Compilation error HOT 1
- The manpage is not up to date HOT 3
- Compilation error after merge PR91 HOT 3
- License information in SPDX standard HOT 1
- need script to set version numbers properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stenc.