From owner-freebsd-current@FreeBSD.ORG Mon Dec 23 15:51:05 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEC00D3 for ; Mon, 23 Dec 2013 15:51:04 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7DD6316E2 for ; Mon, 23 Dec 2013 15:51:04 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id rBNForED043379; Mon, 23 Dec 2013 17:50:53 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua rBNForED043379 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id rBNFoqvY043372; Mon, 23 Dec 2013 17:50:52 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 23 Dec 2013 17:50:52 +0200 From: Konstantin Belousov To: Manfred Antar Subject: Re: vfs_bio.c revision 259200 breaks writing to tape drive on current Message-ID: <20131223155052.GD59496@kib.kiev.ua> References: <201312221754.rBMHssMv004688@pozo.com> <20131223073102.GA59496@kib.kiev.ua> <201312231335.rBNDZSVb021695@pozo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NVswZprUgM/gMU3M" Content-Disposition: inline In-Reply-To: <201312231335.rBNDZSVb021695@pozo.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2013 15:51:05 -0000 --NVswZprUgM/gMU3M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 23, 2013 at 05:35:23AM -0800, Manfred Antar wrote: > At 11:31 PM 12/22/2013, you wrote: > >On Sun, Dec 22, 2013 at 09:54:49AM -0800, Manfred Antar wrote: > >> The change to vfs_bio.c in revision 259200 breaks writing to scsi tape= drive on i386 and sparc64 on current. > >> I don't have any other machines to test on. > >> here is example: > >>=20 > >> r259199: > >> (/)4794}mt rew > >> (/)4795}tar cvf /dev/sa0 kernel > >> a kernel > >>=20 > >> r259200: > >> (/)4781}mt rew > >> (/)4782}tar cvf /dev/sa0 kernel > >> a kerneltar: Write error > >>=20 > >> the changes between the two revisions: > >> line 3682 removed: > >>=20 > >> bp->b_resid =3D bip->bio_resid; /* XXX: remove */ > >>=20 > >> I noticed this when trying to do a dump and getting end of tape error. > >> tried different tape drives , different cables no change. > >> backed out r259200 to 259199 and everything works as before. > >> Manfred > > > >Show me the kdump of the tar commands on both revisions. > > >=20 > It will take me a few hours, back to work today. > Same thing happens with dump too. > The Tape drives are SCSI Quantum DLT used on both machines i386 and spa= rc64 (Sun Netra) > using version 258174 of vfs_bio.c on current kernels, I was able to do a= full dump of both machines without a problem. > The error is when trying to read or write to the tape drive. > What is the exact command for kdump that you want ? > I can do it when I get home this afternoon. > Thanks > Manfred >=20 ktrace -i tar ... kdump -s >some.file I need some.file. --NVswZprUgM/gMU3M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSuFvbAAoJEJDCuSvBvK1BFZUP/ivYTZjKgK3swOHvz5USvi2V 05DLeSwpNp6wYoFwODX6LWGFJ45lK+aeHfHKL/XGTOEmuXWaEdUhvKf/bDkAzTG4 hj0XbGs2alz17560GzfAdmsWCSPEQCpDHANxxu5RLDMjGugB3jmWxuMOqdUIdCbV /h/vWqqfJHAGO/56wQ7vGud+PAK9XHs7COaMc3E3iiXiVSO0RNP+EqkanR5IW3EJ +uXCf7rVn18sSXNAfoC504i9e6bRbuB+MmVAWJHUEqDAFAX6v3xxKqIoOpyD9SnV Y1kJnpzr3X+OlWKIuNjQTnelh/i96HtDyoQpezbKErOr5ou1iEPSwOETOZ9SfqnI mIJZ2tSnIdP8S240b1d56qeDPOtd/MieWoD4/QfGRwUg6CIgHWc4azrNINbodak/ UoYpv8ChqS9gs1/2HzkDUgw2pi9Lw4lZtRF0UlppGYpto2fzte2Kbpe8RLvA4U2c dJKNRKgOJeJSWUbTNZgEMZydw9lp0qh3SwL1AeOdSPVc4nQgXYsCYa8rYrQnY+hC qPifyE8fS1fJ1cCFjia9G0DgumBNc+jkAlGOn1grdCTz/DzSHLZHdoAis9Xn9oZv rCbHQCIsnebWb4/434FqPG4reqXs6ggNFRLs9XoaYJJT84cQdassbDvsX9fkFcmr EaDgjoqLZgWAUyhKjaG/ =pCFs -----END PGP SIGNATURE----- --NVswZprUgM/gMU3M--