Version:
[EMAIL PROTECTED]:~# mt --v
mt (GNU cpio 2.6)
----------------------------------------------
Tape info:
IDE Traven 40
----------------------------------------------
Tape is not in drive:
[EMAIL PROTECTED]:~# mt -f /dev/ht0 rewind ; echo $?
0
[EMAIL PROTECTED]:~# mt -f /dev/ht0 eject ; echo $?
0
----------------------------------------------
Tape is in drive:
[EMAIL PROTECTED]:~# mt -f /dev/ht0 rewind ; echo $?
0
[EMAIL PROTECTED]:~# mt -f /dev/ht0 eject ; echo $?
0
----------------------------------------------
Your test cases:
[EMAIL PROTECTED]:~# mt -f /dev/null status ; echo $?
mt: /dev/null: Inappropriate ioctl for device
2
[EMAIL PROTECTED]:~# mt -f /dev/null wrongcmd ; echo $?
mt: invalid argument `wrongcmd' for `tape operation'
1
-----------------------------------------------
Having it return 0 for cases when the tape is not in the drive causes the my
backup scripts to fail.
GNU mt version 2.4.2 is a version I know does not have this problem.
--
wrong return status codes
https://launchpad.net/bugs/72085
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs