diff options
author | phk <phk@FreeBSD.org> | 2002-04-04 09:58:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-04 09:58:20 +0000 |
commit | db493db577dc94eddc66727afeaea6db9f222d21 (patch) | |
tree | 84cd3b37b33ab8ee17bfc06cb069383637e7e717 /sys/geom/geom_disk.c | |
parent | d8abc82c52af45fa27059081d5ac3d41cfac5351 (diff) | |
download | FreeBSD-src-db493db577dc94eddc66727afeaea6db9f222d21.zip FreeBSD-src-db493db577dc94eddc66727afeaea6db9f222d21.tar.gz |
Centralize EOF handling and improve access controls for bio scheduling.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 3cae0a3..89ce70c 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -93,6 +93,8 @@ g_disk_access(struct g_provider *pp, int r, int w, int e) } else { error = 0; } + pp->mediasize = + dp->d_label.d_secsize * (off_t)dp->d_label.d_secperunit; return (error); } |