summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-04 09:58:20 +0000
committerphk <phk@FreeBSD.org>2002-04-04 09:58:20 +0000
commitdb493db577dc94eddc66727afeaea6db9f222d21 (patch)
tree84cd3b37b33ab8ee17bfc06cb069383637e7e717 /sys/geom/geom_slice.c
parentd8abc82c52af45fa27059081d5ac3d41cfac5351 (diff)
downloadFreeBSD-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_slice.c')
-rw-r--r--sys/geom/geom_slice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index ad91ade..1ac1d0a 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -115,6 +115,7 @@ g_slice_access(struct g_provider *pp, int dr, int dw, int de)
if ((cp->acr + dr) == 0 && (cp->acw + dw) == 0 && (cp->ace + de) == 1)
de--;
error = g_access_rel(cp, dr, dw, de);
+ pp->mediasize = gsp->slices[pp->index].length;
return (error);
}
OpenPOWER on IntegriCloud