summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-26 14:46:10 +0000
committerphk <phk@FreeBSD.org>1999-08-26 14:46:10 +0000
commit2c6415fbf944c8b04586e326b6d563bbb8c9d06b (patch)
tree5ee6097d31278873d930e93764d3d3c37b68aaa7
parent034439b432b5e08f68dd31925bc4b0c1cc79b8fb (diff)
downloadFreeBSD-src-2c6415fbf944c8b04586e326b6d563bbb8c9d06b.zip
FreeBSD-src-2c6415fbf944c8b04586e326b6d563bbb8c9d06b.tar.gz
Initialize the dev->si_bsize fields.
Submitted by: tegge Reviewed by: phk
-rw-r--r--sys/dev/ccd/ccd.c6
-rw-r--r--sys/geom/geom_ccd.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c
index c6eb299..e4faa3f 100644
--- a/sys/dev/ccd/ccd.c
+++ b/sys/dev/ccd/ccd.c
@@ -1,4 +1,4 @@
-/* $Id: ccd.c,v 1.51 1999/07/18 14:30:57 phk Exp $ */
+/* $Id: ccd.c,v 1.52 1999/08/14 11:40:34 phk Exp $ */
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
@@ -633,6 +633,10 @@ ccdopen(dev, flags, fmt, p)
part = ccdpart(dev);
pmask = (1 << part);
+ dev->si_bsize_phys = DEV_BSIZE;
+ dev->si_bsize_best = BLKDEV_IOSIZE;
+ dev->si_bsize_max = MAXBSIZE;
+
/*
* If we're initialized, check to see if there are any other
* open partitions. If not, then it's safe to update
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index c6eb299..e4faa3f 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -1,4 +1,4 @@
-/* $Id: ccd.c,v 1.51 1999/07/18 14:30:57 phk Exp $ */
+/* $Id: ccd.c,v 1.52 1999/08/14 11:40:34 phk Exp $ */
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
@@ -633,6 +633,10 @@ ccdopen(dev, flags, fmt, p)
part = ccdpart(dev);
pmask = (1 << part);
+ dev->si_bsize_phys = DEV_BSIZE;
+ dev->si_bsize_best = BLKDEV_IOSIZE;
+ dev->si_bsize_max = MAXBSIZE;
+
/*
* If we're initialized, check to see if there are any other
* open partitions. If not, then it's safe to update
OpenPOWER on IntegriCloud