aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2003-08-22 11:21:06 +0000
committerPaul Saab <ps@FreeBSD.org>2003-08-22 11:21:06 +0000
commite65b21376864d7a2dde157236ee70967ce851a45 (patch)
tree53dfbee4f313444aca31e788a4c5c9ccd90baea5 /sys/geom/geom_ccd.c
parentf63679713e0f6e3f19f5ba0f99e8ebb873520a30 (diff)
Change the the size fields to daddr_t to support greater than 2TB ccd volumes.
Reviewed by: phk
Notes
Notes: svn path=/head/; revision=119300
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index fa80713376e0..d7e9e6d9e625 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -114,7 +114,7 @@ struct ccdiinfo {
* Describes a single component of a concatenated disk.
*/
struct ccdcinfo {
- size_t ci_size; /* size */
+ daddr_t ci_size; /* size */
struct g_provider *ci_provider; /* provider */
struct g_consumer *ci_consumer; /* consumer */
};
@@ -128,7 +128,7 @@ struct ccd_s {
int sc_unit; /* logical unit number */
int sc_flags; /* flags */
- size_t sc_size; /* size of ccd */
+ daddr_t sc_size; /* size of ccd */
int sc_ileave; /* interleave */
u_int sc_ndisks; /* number of components */
struct ccdcinfo *sc_cinfo; /* component info */
@@ -204,9 +204,9 @@ static int
ccdinit(struct gctl_req *req, struct ccd_s *cs)
{
struct ccdcinfo *ci;
- size_t size;
+ daddr_t size;
int ix;
- size_t minsize;
+ daddr_t minsize;
int maxsecsize;
off_t mediasize;
u_int sectorsize;
@@ -309,7 +309,7 @@ ccdinterleave(struct ccd_s *cs)
struct ccdiinfo *ii;
daddr_t bn, lbn;
int ix;
- u_long size;
+ daddr_t size;
/*