Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 15:45:40 +0100
From:      =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Alexander Motin <mav@freebsd.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>, Stefan Hegnauer <stefan.hegnauer@gmx.ch>
Subject:   Re: nanobsd / dd problem?
Message-ID:  <CA%2Bq%2BTcrWii9tMLu%2BQ0PKRTzSA-e786jGZhupm9s7E974cnhwug@mail.gmail.com>
In-Reply-To: <20131209044239.GS59496@kib.kiev.ua>
References:  <52a4ad05.892ee50a.41cd.084aSMTPIN_ADDED_BROKEN@mx.google.com> <20131209044239.GS59496@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 9, 2013 at 5:42 AM, Konstantin Belousov <kostikbel@gmail.com>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcrWii9tMLu%2BQ0PKRTzSA-e786jGZhupm9s7E974cnhwug>