Re: nanobsd / dd problem?

From: Olivier Cochard-Labbé <olivier_at_cochard.me>
Date: Mon, 9 Dec 2013 15:45:40 +0100
On Mon, Dec 9, 2013 at 5:42 AM, Konstantin Belousov <kostikbel_at_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
> _at__at_ -3679,7 +3679,6 _at__at_ 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
Received on Mon Dec 09 2013 - 13:46:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:45 UTC