Giter Site home page Giter Site logo

Blank tape about stenc HOT 6 CLOSED

scsitape avatar scsitape commented on May 24, 2024
Blank tape

from stenc.

Comments (6)

jmwilson avatar jmwilson commented on May 24, 2024

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.

sunwire avatar sunwire commented on May 24, 2024

Can you try the cleanup branch on jmwilson/stenc?

Still the same error, blank tape. But it fixes #72
If I add O_NONBLOCK flag to line

unique_fd fd {open(device.c_str(), O_RDONLY)};

it also fixes #12 (under Linux)

from stenc.

jmwilson avatar jmwilson commented on May 24, 2024

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.

jmwilson avatar jmwilson commented on May 24, 2024

@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.

sunwire avatar sunwire commented on May 24, 2024

can you see if this handles your situation?
Everything works!

from stenc.

sunwire avatar sunwire commented on May 24, 2024

Fixed

from stenc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.