diff options
author | phk <phk@FreeBSD.org> | 2004-10-26 07:39:12 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-26 07:39:12 +0000 |
commit | c66aa10c8e6167eefdae7f218765e3e5f146074a (patch) | |
tree | 99d735718c70e881e08ae2c1a8455ddc64133e68 /sys/sys/bufobj.h | |
parent | 343104d2b1da0fbfb5e5c9c1fe56d2669864ca17 (diff) | |
download | FreeBSD-src-c66aa10c8e6167eefdae7f218765e3e5f146074a.zip FreeBSD-src-c66aa10c8e6167eefdae7f218765e3e5f146074a.tar.gz |
Put the I/O block size in bufobj->bo_bsize.
We keep si_bsize_phys around for now as that is the simplest way to pull
the number out of disk device drivers in devfs_open(). The correct solution
would be to do an ioctl(DIOCGSECTORSIZE), but the point is probably mooth
when filesystems sit on GEOM, so don't bother for now.
Diffstat (limited to 'sys/sys/bufobj.h')
-rw-r--r-- | sys/sys/bufobj.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/bufobj.h b/sys/sys/bufobj.h index 86058ed..337d0cd 100644 --- a/sys/sys/bufobj.h +++ b/sys/sys/bufobj.h @@ -82,7 +82,8 @@ struct bufobj { struct bufv bo_dirty; /* i Dirty buffers */ long bo_numoutput; /* i Writes in progress */ u_int bo_flag; /* i Flags */ - struct buf_ops *bo_ops; /* - buffer operatoins */ + struct buf_ops *bo_ops; /* - Buffer operations */ + int bo_bsize; /* - Block size for i/o */ struct vm_object *bo_object; /* v Place to store VM object */ }; |