Debugging arla on FreeBSD 4.0

Robert P Ricci ricci at eng.utah.edu
Sat Apr 1 22:42:46 CEST 2000


It sure looks to me that that should work. I've applied it, we'll see
if the problem crops up again.

[Sorry about the bounced mail, my mailer was temporarily broken.]

Thus spake Assar Westerlund on Sat, Apr 01, 2000 at 09:41:57AM +0200:
> [ resent to ricci at eng.utah.edu, because ricci at siren.eng.utah.edu seems
> to bounce ]
> 
> It seems like the code in xfs_devread() does the wrong thing.  Does
> this patch look good?  And/or does it work? :)
> 
> /assar
> 
> Index: xfs_dev-common.c
> ===================================================================
> RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_dev-common.c,v
> retrieving revision 1.30
> diff -u -w -u -w -r1.30 xfs_dev-common.c
> --- xfs_dev-common.c	2000/03/19 00:22:26	1.30
> +++ xfs_dev-common.c	2000/04/01 07:38:50
> @@ -226,6 +227,9 @@
>  	    XFSDEB(XDEBDEV, ("xfs_devread: message->size = %u\n",
>  			     first->message->size));
>  	    
> +	    if (first->message->size > uiop->uio_resid)
> +		break;
> +
>  	    error = uiomove((caddr_t) first->message, first->message->size, 
>  			    uiop);
>  	    if (error)





More information about the Arla-drinkers mailing list