diff options
author | dillon <dillon@FreeBSD.org> | 1999-02-25 05:22:30 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-02-25 05:22:30 +0000 |
commit | 9b8aaaa7375f258fd7dc7faf201875d578599b02 (patch) | |
tree | fbbc77b0ff3baa9b7cd6260e12c22dbbc9dd5ca7 /sys/miscfs/specfs/specdev.h | |
parent | 2cb5b6d7d54b14e1086055e6a5d05f9f96e0fc40 (diff) | |
download | FreeBSD-src-9b8aaaa7375f258fd7dc7faf201875d578599b02.zip FreeBSD-src-9b8aaaa7375f258fd7dc7faf201875d578599b02.tar.gz |
Reviewed by: Julian Elischer <julian@whistle.com>
Add d_parms() to {c,b}devsw[]. If non-NULL this function points to
a device routine that will properly fill in the specinfo structure.
vfs_subr.c's checkalias() supplies appropriate defaults. This change
should be fully backwards compatible with existing devices.
Diffstat (limited to 'sys/miscfs/specfs/specdev.h')
-rw-r--r-- | sys/miscfs/specfs/specdev.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h index 9c225a3..a7e2bab 100644 --- a/sys/miscfs/specfs/specdev.h +++ b/sys/miscfs/specfs/specdev.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)specdev.h 8.6 (Berkeley) 5/21/95 - * $Id: specdev.h,v 1.14 1998/03/08 09:57:40 julian Exp $ + * $Id: specdev.h,v 1.15 1998/04/19 23:32:29 julian Exp $ */ /* @@ -44,7 +44,9 @@ struct specinfo { struct vnode *si_specnext; struct mount *si_mountpoint; dev_t si_rdev; - unsigned long si_blksize; /* smallest IO unit */ + int si_bsize_phys; /* minimum physical block size */ + int si_bsize_best; /* optimal block size / VBLK */ + int si_bsize_max; /* maximum block size */ }; /* * Exported shorthand @@ -53,7 +55,6 @@ struct specinfo { #define v_hashchain v_specinfo->si_hashchain #define v_specnext v_specinfo->si_specnext #define v_specmountpoint v_specinfo->si_mountpoint -#define v_blksize v_specinfo->si_blksize /* * Special device management |