diff options
author | phk <phk@FreeBSD.org> | 2003-01-02 09:38:22 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-02 09:38:22 +0000 |
commit | 8fa3036bdb3be790eaa5e1a4ffb8f33b84d973d4 (patch) | |
tree | a546014af774286093ece6ae222846ce7916d2e1 /sys/geom | |
parent | 73597ffcc20fd9eaddbf5ce13b22e051e28b47e3 (diff) | |
download | FreeBSD-src-8fa3036bdb3be790eaa5e1a4ffb8f33b84d973d4.zip FreeBSD-src-8fa3036bdb3be790eaa5e1a4ffb8f33b84d973d4.tar.gz |
Update si_bsize_phys on open.
MFC candidate.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index c258b86..3efe046 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -208,6 +208,7 @@ g_dev_open(dev_t dev, int flags, int fmt, struct thread *td) g_topology_unlock(); PICKUP_GIANT(); g_waitidle(); + dev->si_bsize_phys = cp->provider->sectorsize; return(error); } |