diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-01-14 19:02:12 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-01-14 19:02:12 +0000 |
commit | 253431eccd581db9fd637ef4e605b15dc0528275 (patch) | |
tree | ecd9892ca5305de8aa90bc2802e9dffcc43cf2e9 | |
parent | 8ad191c1fecedf252a86246efb07df470d15afbc (diff) |
Fix max disk size: whe have 48 bits for size in 512 bytes units.
1 bit allowance to avoid possible sign extend issues for now.
This results in a max partition or disk size of 64PB. ok krw@ miod@
-rw-r--r-- | sys/sys/disklabel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 363aad9272b..9c300ec595c 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.40 2007/11/09 11:32:57 jsing Exp $ */ +/* $OpenBSD: disklabel.h,v 1.41 2008/01/14 19:02:11 otto Exp $ */ /* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */ /* @@ -72,7 +72,7 @@ #define DISKMAGIC ((u_int32_t)0x82564557) /* The disk magic number */ -#define MAXDISKSIZE 0x1fffffffffffLL /* 47 bits of reach */ +#define MAXDISKSIZE 0x7fffffffffffLL /* 47 bits of reach */ #ifndef _LOCORE struct disklabel { |