diff options
author | NeilBrown <neilb@suse.de> | 2008-12-04 15:47:57 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-12-04 15:47:57 +1100 |
commit | e46273ebe4ce6dee3ecbb640027cd3c3eca9a921 (patch) | |
tree | a1cc9c9c0c01ed62a799a9c8198ee4bbebe6be35 /super0.c | |
parent | ed034b1170781c773ebe61351280cba50001e812 (diff) | |
download | mdadm-e46273ebe4ce6dee3ecbb640027cd3c3eca9a921.tar.gz mdadm-e46273ebe4ce6dee3ecbb640027cd3c3eca9a921.tar.xz mdadm-e46273ebe4ce6dee3ecbb640027cd3c3eca9a921.zip |
Change 'size' argument to validate_geometry to be sectors, not K
That way it is the same a *freesize, and generally less confusing.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1057,7 +1057,7 @@ static int validate_geometry0(struct supertype *st, int level, return 0; if (raiddisks > MD_SB_DISKS) return 0; - if (size > (0x7fffffffULL<<10)) + if (size > (0x7fffffffULL<<9)) return 0; if (!subdev) return 1; @@ -1078,7 +1078,7 @@ static int validate_geometry0(struct supertype *st, int level, if (ldsize < MD_RESERVED_SECTORS * 512) return 0; - if (size > (0x7fffffffULL<<10)) + if (size > (0x7fffffffULL<<9)) return 0; *freesize = MD_NEW_SIZE_SECTORS(ldsize >> 9); return 1; |