From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4897 invoked by alias); 25 Jun 2018 09:29:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4884 invoked by uid 89); 25 Jun 2018 09:29:30 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Jun 2018 09:29:29 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LjiA5-1g8vQE1W4P-00btan for ; Mon, 25 Jun 2018 11:29:27 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 00E0AA818DE; Mon, 25 Jun 2018 11:29:27 +0200 (CEST) Date: Mon, 25 Jun 2018 12:08:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.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@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5B2CECB2.3080101@diotec.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline In-Reply-To: <5B2CECB2.3080101@diotec.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-06/txt/msg00271.txt.bz2 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1506 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" Content-length: 833 -----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--