From owner-freebsd-current@FreeBSD.ORG Mon Dec 9 14:46:02 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 6BB77A63; Mon, 9 Dec 2013 14:46:02 +0000 (UTC) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [IPv6:2607:f8b0:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 13D011025; Mon, 9 Dec 2013 14:46:02 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id ij19so1547034vcb.31 for ; Mon, 09 Dec 2013 06:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=3hCQ7tvKWEQv1i4OjpN3N27wCeOSVClLGxwKjsKI5DU=; b=U5WW1V4d8zwkKlK5IRxjCdo3n8ULTu3AXaoarSjfrvX/hRNdb8jN30jkBvqkyJ3dNE 2SyA4PCinI/9/s0l1c1lW1vLst0AxRrX7CNvUl8l6/ZT2+Ta/VF7C2oMRebz1M2unL+W 3KqGofsI+rac0f5LXBY6xaQdvavl02b5MaADqS7pjVIRHV2jGoNohAbXHxw+Hx9HEYWs j06MqNweF8TI0qiBhk0TNXDw/a9ImtWB7WZA7A7r6dLdwAdA/EuDMnQbg2Dz4Ida07mi nfSzbAhakkPeQc9xJC30eEeo/M9ixhAuPjvOmeTA7wFZWEH92lfoejH3iodxOiuMpErm 5vUA== X-Received: by 10.220.95.201 with SMTP id e9mr350335vcn.71.1386600360252; Mon, 09 Dec 2013 06:46:00 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.123.5 with HTTP; Mon, 9 Dec 2013 06:45:40 -0800 (PST) In-Reply-To: <20131209044239.GS59496@kib.kiev.ua> References: <52a4ad05.892ee50a.41cd.084aSMTPIN_ADDED_BROKEN@mx.google.com> <20131209044239.GS59496@kib.kiev.ua> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Mon, 9 Dec 2013 15:45:40 +0100 X-Google-Sender-Auth: Se9mGq66apN0Q4s7amQEDbCG7v8 Message-ID: Subject: Re: nanobsd / dd problem? To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Alexander Motin , "freebsd-current@freebsd.org" , Stefan Hegnauer 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, 09 Dec 2013 14:46:02 -0000 On Mon, Dec 9, 2013 at 5:42 AM, Konstantin Belousov wrote: > > > > The patch below should be a right thing to do anyway. > > diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c > index c23a74b..b7c4d60 100644 > --- a/sys/kern/vfs_bio.c > +++ b/sys/kern/vfs_bio.c > @@ -3679,7 +3679,6 @@ bufdonebio(struct bio *bip) > > bp = bip->bio_caller2; > bp->b_resid = bp->b_bcount - bip->bio_completed; > - bp->b_resid = bip->bio_resid; /* XXX: remove */ > bp->b_ioflags = bip->bio_flags; > bp->b_error = bip->bio_error; > if (bp->b_error) > Problem fixed with your patch for me too: Thanks. Olivier