Set the buffersize for non BSDFFS labeled partitions to

max(dev->si_bsize_phys, BLKDEV_IOSIZE).

Requested by:   davidg
This commit is contained in:
Poul-Henning Kamp 1999-08-31 21:46:42 +00:00
parent 586e1b7b46
commit 3b7df19ba4
2 changed files with 8 additions and 8 deletions

View File

@ -288,8 +288,8 @@ if (bdev_access) {
return (EINVAL);
bsize = dev->si_bsize_phys;
while (bsize < dev->si_bsize_max && bsize < uio->uio_resid)
bsize <<= 1;
if (bsize < BLKDEV_IOSIZE)
bsize = BLKDEV_IOSIZE;
if ((ioctl = devsw(dev)->d_ioctl) != NULL &&
(*ioctl)(dev, DIOCGPART, (caddr_t)&dpart, FREAD, p) == 0 &&
@ -372,8 +372,8 @@ if (bdev_access) {
return (EINVAL);
bsize = dev->si_bsize_phys;
while (bsize < dev->si_bsize_max && bsize < uio->uio_resid)
bsize <<= 1;
if (bsize < BLKDEV_IOSIZE)
bsize = BLKDEV_IOSIZE;
if ((*devsw(dev)->d_ioctl)(dev, DIOCGPART,
(caddr_t)&dpart, FREAD, p) == 0) {

View File

@ -288,8 +288,8 @@ if (bdev_access) {
return (EINVAL);
bsize = dev->si_bsize_phys;
while (bsize < dev->si_bsize_max && bsize < uio->uio_resid)
bsize <<= 1;
if (bsize < BLKDEV_IOSIZE)
bsize = BLKDEV_IOSIZE;
if ((ioctl = devsw(dev)->d_ioctl) != NULL &&
(*ioctl)(dev, DIOCGPART, (caddr_t)&dpart, FREAD, p) == 0 &&
@ -372,8 +372,8 @@ if (bdev_access) {
return (EINVAL);
bsize = dev->si_bsize_phys;
while (bsize < dev->si_bsize_max && bsize < uio->uio_resid)
bsize <<= 1;
if (bsize < BLKDEV_IOSIZE)
bsize = BLKDEV_IOSIZE;
if ((*devsw(dev)->d_ioctl)(dev, DIOCGPART,
(caddr_t)&dpart, FREAD, p) == 0) {