Subject: Re: proposal for non-512 bytes/sector block device
To: Christos Zoulas <christos@nyc.deshaw.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 06/30/1997 13:33:45
On Mon, 30 Jun 1997 19:27:42 GMT 
 christos@nyc.deshaw.com (Christos Zoulas) wrote:

 > Isn't it better to write those two as:
 > 
 > 		if (sdp->swd_bsize != DEV_BSIZE)
 > 			nblks = (nblks * DEV_BSIZE) / sdp->swd_bsize;

	Not if this causes an overflow... (quite possible on large
	disks, I suppose...)

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939