| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=ZTQsTRFJ8Snf6XvWBICuk8uqOsDYlj5Y4HA02HuBe6YKmsElD0xqF | |
| +UFQXFAYceVI2qynXn6ofgyH/tqBxV32N0VLd2/WNIbEHAKwjTefz52XWn5oD5Hr | |
| KB8BskK1runWObkHH9eWtjD/2JjQS2sM/+1gTSP3jpuQMLlH0+iQlA= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=jtQqsOj/ZpE2N+bznBzebnwDOGM=; b=o5GDh8TQ2lDVk/rzgtQQiAkK7vfk | |
| Q+48BqPkfOoVRQa0ll23njS0brsXbZ5TnX0n800F7QnJlZs0I00L1jLP9VDT4VIF | |
| IQCmH7+/1zYpCyqCqmVBjYIQ8362LvMjG1VkfdaVyeIRmrOW5ixapwF1QuoRU7/7 | |
| yuhZL7Pt00Ja9HQ= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-101.4 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=situation, sane, quantum, *not* |
| X-HELO: | mout.kundenserver.de |
| Date: | Mon, 25 Jun 2018 11:29:26 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: mt LTO 6 Unknown type of tape device AND online status not correct |
| Message-ID: | <20180625092926.GE28757@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <5B2CECB2 DOT 3080101 AT diotec DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <5B2CECB2.3080101@diotec.com> |
| User-Agent: | Mutt/1.9.2 (2017-12-15) |
--s/l3CgOIzMHHjg/5
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Jun 22 14:33, Timo Maier wrote:
> Hello,
>=20
> the following is done with: mt V2.5.2, Corinna Vinschen, Aug 26 2013
>=20
> I have a Quantum LTO 6 Tape Drive (QUANTUM_ULTRIUM-HH6) which works in ge=
neral with the latest cygwin64. I can use mt to rewind or eject and tar can=
write and read the tape.
>=20
> Before starting to write I want to check if the tape is ready with "statu=
s", but no matter if the tape is in or not, status always says ONLINE.
>=20
> Can anyone help, please? Thanks in advance.
The ONLINE status is a result of the following (pseudo) Windows calls:
offline =3D false;
if (GetTapeStatus (tape_handle) =3D=3D ERROR_NO_MEDIA_IN_DRIVE
|| GetTapeParameters (tape_handle, GET_TAPE_MEDIA_INFORMATION, ...)
=3D=3D ERROR_NO_MEDIA_IN_DRIVE)
offline =3D true;
The actual code also ignores ERROR_MEDIA_CHANGED errors, but it does
*not* ignore ERROR_BUS_RESET. Assuming the drive doesn't screw up
completely, maybe an ERROR_BUS_RESET is generated. However, this
should have been catched by the GetTapeStatus call so the subsequent
GetTapeParameters call should return a sane error code. Hmm.
If I give you the URL to a special Cygwin DLL just for testing this
situation via PM, are you willing to run it so we may find the cause of
this discrepancy? No guarantee this can be fixed, but we can at least
try.
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--s/l3CgOIzMHHjg/5
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlswtfYACgkQ9TYGna5E
T6AktxAAoMGlqpAAk7LTDt0ZSLwwuhIG9Xwz5Ssz0GDGEvfYTeorujNeFdf51iQZ
oCB6PooP0CrtYdN4J2IfXtXUbJ2MFUXL3MyHyki7hPuQV0uVW1SVtY+bsJy1701z
XzRxjnceQGUwRDFqo3ixXEzu2/lnggStJQsj/EHpmymJQsGTDXZd37sklrFgW0Uf
LyDU5D2fiotJHGWGFlXADIOlt5RSKzQPetxsTeAzAKm/p4WPnGIVGziCjWk/5hXz
7SXJXYhp2+n/tb7qACXFOwA4YOGyI4gW+pyEpiJ93XbRtfrodJN3sQj7hQ1Jr1sV
Zomgn5m4KTv70bwc+RKTQssnFpLE73+qI0+4PlVK+FiiMmLztG5RTfx6H3gariDp
Jgf4gJ+b5m/LaSebHeeveHah2TgVPkYFzdnNTejuMW/5VfLcTUJYRI0hkEbBa6P/
J0/uVzucv2Id8HeVsCD7KptnCzgE4dV7Nlz36rIGT00MsiR3aksLHDPRFXCc5Ro5
j5OFUqCBsvWYRrhuJfdEWFD8fLRgIyOxFeV4hhxExggROO10VUpX5vBE+1VN1zyD
Lzt8izYZuqnnSJw4L1aYbgUsKxatkNUIhGvCXWlEbHh8/UrQGTfFmAWE9g9wHe87
x673FbWGognSMYSYkoXm8ydBxcEFyKDmqRONUSsxTPUnRJgTuOo=
=CU7h
-----END PGP SIGNATURE-----
--s/l3CgOIzMHHjg/5--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |