delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/20/04:29:29

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=Z424iZFi3oTmVxKTZZw17wg0Yoqu+tieN5sctNo+WdOn8fLCHHbFq
9nJsnQzZXm33ivwt1hEiZCxSzmbrDQAw7VRFTSyEktaKbM9nCSFdhLoyY9zKhvMc
+WcDODXTbPnGn3oh/PE1D84knTypW9SLD5ng9/mTGHwySOOrBnGTKg=
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=/e91fnQ1SJD9E9phAtRc7BdHE+A=; b=y0nAe9NHdLGeF+whIdrp/MLHcWBb
cxSKDBRqyU2dhVS5TRdd5PWJOjr0a+nZ+8NdDRpNbcr77hfXVlW4DIFoLUIrtm9V
hcfSNv/RcoVlml68RTAtG9VRfts87ktwEgfFvHyjAn9qjCh0f0v0AleePakQRM7o
lact2TATJXPE8+w=
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
X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED autolearn=ham version=3.3.2
Date: Tue, 20 Aug 2013 10:29:05 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mt and tar fail on LTO-5 drives
Message-ID: <20130820082905.GE31248@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <520FC274 DOT 3040001 AT mailme DOT ath DOT cx> <20130819101917 DOT GC18757 AT calimero DOT vinschen DOT de> <52124601 DOT 5000409 AT mailme DOT ath DOT cx> <20130819171203 DOT GC31248 AT calimero DOT vinschen DOT de> <52126DBF DOT 7040904 AT mailme DOT ath DOT cx>
MIME-Version: 1.0
In-Reply-To: <52126DBF.7040904@mailme.ath.cx>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Virus-Found: No

--MIdTMoZhcV1D07fI
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 19 21:10, bartels wrote:
> On 08/19/2013 07:12 PM, Corinna Vinschen wrote:
> >
> >It would be interesting to see the OS error codes.  If you run tar under
> >strace, the trace output should contain a line like
> >
> >   [...] write: Win32 error XXXX
> >
> >or
> >
> >   [...] close: Win32 error XXXX
> >
> >The value of XXXX is what I'm curious about.
>=20
> Here is the error:
>=20
>  15692 21364024 [main] tar 5700 mtinfo_drive::error: write: Win32 error 1=
100

ERROR_END_OF_MEDIA.  The OS really thinks the medium is at its end...

...or the *partition* is at its end.  Something occured to me this
morning.  Are you using used tapes, rather than fresh ones?  Are the
tapes you're using partitioned, by any chance, maybe because LTFS
partitions the tape in two partitions, one for the files and one for
metadata?

This would explain the low capacity you see in mt status output.  If the
tape is partitioned, the capacity returned by GetTapeParameters is not
the size of the entire tape, but the size of the current partition(*).
And partition 0 is probably the metadata partition.

This also explains why you get a supposedly early ERROR_END_OF_MEDIA.
The partition is just not bigger.

Try this:

  $ mt -f /dev/nst0 setpartition 0
  $ mt -f /dev/nst0 status 2
  $ mt -f /dev/nst0 setpartition 1
  $ mt -f /dev/nst0 status 2

> >>I suppose there is nothing for cygwin to do, other
> >>than adding some items to the 'density' list:
> >>   {0x44, "Ultrium LTO-3"},
> >mt already knows LTO-3 and 4.
>=20
> Which version is that? I have mt V2.3.2 and do not see it in the code.

The current version is 2.3.3.  I'll release a 2.3.4 soon.


Corinna


(*) http://msdn.microsoft.com/en-us/library/windows/desktop/aa362526%28v=3D=
vs.85%29.aspx

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--MIdTMoZhcV1D07fI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBAgAGBQJSEyjRAAoJEPU2Bp2uRE+gkXoQAKXptnbwMlmeuRu8gMgnfhR3
OtVpB9trgAf8Ivwzqc5PxcSTVDVuq+v6O3CYA6gS2hUpJ89rDqUee5VpLphymkhT
OPUiYn0iJv8xqVwtI/VzBczvcXUQvm193cM8YOwwcRQejkXkFm5lMRL2oXWtjGOa
72zNenRoumTis4DoBqizGGjRjq3q9NhwSWkXMrZCkvYQqYn3vz8E2xUhYHzhiIWY
43tiClNZwyxV05xKX4pKvu6hMGBEv3cq32tLMAIK9X9kaof3OXbPwBlbbjM+kdk2
iUfCJXKCK5jdm2ANhsYUVWRPFhjxaNsl1kyVp35AemTarRa7OKLgPtSqZ77uMi9v
XnIf83Bm0DxM2sL2i5eTD92vbQ1s87/2lsGERKEtM/0u8bBKk7/+JgriZEstY6Yr
9XBDv1jNv1MxpBgEBL68BWP3yo2lXfW8Bxoz3PxSHr4gb7xBFQHL8qxXbs+LQcXS
xNLzv3Nai8F07nV50w4Ln5iROtsFUvgwYDSFaFTUEp7J9XkM0QdkBnev7k/LUCjz
JRfEwPv0tmzgnBYB4DJfA5aKb2TTWSH3+YCqkuqRzKBDi2rLHHt5an318sF9U9To
cLMp4f/Ct0LHEzUFqbn32N0Ivb663xWMJRzfQrqUrcdzdsAp4cBW215+jwWKanNc
b5D15cyCBRClbC/NHPPj
=vhkP
-----END PGP SIGNATURE-----

--MIdTMoZhcV1D07fI--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019