]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: show correct size for arrays with 4k disks
authorMaksymilian Kunt <maksymilian.kunt@intel.com>
Mon, 9 Jan 2017 14:16:04 +0000 (15:16 +0100)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Mon, 9 Jan 2017 14:26:12 +0000 (09:26 -0500)
commitef5c214e4ff8b5f489421352ee6e2b6ddf8257d2
tree1a2c47f723b6a62a052e036cc8490c83cc7d8c36
parent4515fb28a53ad53d4ce3ee3e9ff6d29ab4a6f4d6
imsm: show correct size for arrays with 4k disks

Number of blocks used to calculate array size is based on 512 block size
so the size displayed is incorrect for arrays with 4k disks.

Signed-off-by: Maksymilian Kunt <maksymilian.kunt@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
super-intel.c