nanobsd / dd problem?

Olivier Cochard-Labbé olivier at cochard.me
Mon Dec 9 14:46:02 UTC 2013


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
> @@ -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


More information about the freebsd-current mailing list