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

Remove device renaming and select default device #48

Merged
merged 1 commit into from
May 8, 2022

Conversation

jmwilson
Copy link
Contributor

The device renaming code (/dev/stX -> /dev/nstX) looks fragile and is not portable (Linux is st, BSD is sa, AIX is rmt, etc.). Other tools like mt(1) do not try to redirect commands to the non-rewinding device; if you want to shoot yourself in the foot with mt -f /dev/st0 eod it will do as asked. So I think this utility should just operate with whatever device it is requested by the operator.

This change also adopts the behavior of mt(1) and tar(1) of examining the environment variable TAPE or the value of DEFTAPE in sys/mtio.h if the device is not explicitly specified.

This can partially address #4 and supersede #26.

@jonasstein jonasstein self-assigned this May 8, 2022
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.

2 participants