summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2003-08-22 11:21:06 +0000
committerps <ps@FreeBSD.org>2003-08-22 11:21:06 +0000
commit3f7f2a4cfc477c97184c20eef0de1bfad4b8ac5c (patch)
tree53dfbee4f313444aca31e788a4c5c9ccd90baea5 /sys/geom/geom_ccd.c
parent57ee24a70abc66b2f450f508334cd1744b910f56 (diff)
downloadFreeBSD-src-3f7f2a4cfc477c97184c20eef0de1bfad4b8ac5c.zip
FreeBSD-src-3f7f2a4cfc477c97184c20eef0de1bfad4b8ac5c.tar.gz
Change the the size fields to daddr_t to support greater than 2TB ccd volumes.
Reviewed by: phk
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 fa80713..d7e9e6d 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;
/*
OpenPOWER on IntegriCloud