From owner-freebsd-current@FreeBSD.ORG Mon Dec 23 13:35:41 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 56654739 for ; Mon, 23 Dec 2013 13:35:41 +0000 (UTC) Received: from pozo.com (pozo.com [50.197.129.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 339C61D9E for ; Mon, 23 Dec 2013 13:35:40 +0000 (UTC) Received: from T61p.pozo.com (t61p.pozo.com [192.168.0.4]) (authenticated bits=0) by pozo.com (8.14.7/8.14.7) with ESMTP id rBNDZSVb021695 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NOT); Mon, 23 Dec 2013 05:35:29 -0800 (PST) (envelope-from null@pozo.com) Message-Id: <201312231335.rBNDZSVb021695@pozo.com> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 23 Dec 2013 05:35:23 -0800 To: Konstantin Belousov From: Manfred Antar Subject: Re: vfs_bio.c revision 259200 breaks writing to tape drive on current In-Reply-To: <20131223073102.GA59496@kib.kiev.ua> References: <201312221754.rBMHssMv004688@pozo.com> <20131223073102.GA59496@kib.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, MISSING_MID autolearn=no version=3.3.2, No X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on pozo.com X-pozocom-MailScanner-Information: Please contact the ISP for more information X-pozocom-MailScanner-ID: rBNDZSVb021695 X-pozocom-MailScanner: Found to be clean X-pozocom-MailScanner-From: null@pozo.com 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 13:35:41 -0000 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: >> >> r259199: >> (/)4794}mt rew >> (/)4795}tar cvf /dev/sa0 kernel >> a kernel >> >> r259200: >> (/)4781}mt rew >> (/)4782}tar cvf /dev/sa0 kernel >> a kerneltar: Write error >> >> the changes between the two revisions: >> line 3682 removed: >> >> bp->b_resid = bip->bio_resid; /* XXX: remove */ >> >> 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. > 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 sparc64 (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