diff options
author | Oleksandr Shchirskyi <oleksandr.shchirskyi@linux.intel.com> | 2021-06-18 15:53:30 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2021-07-16 16:25:13 +0200 |
commit | 7d8935cbb0fdb2b776b736bffc00323a04e5f788 (patch) | |
tree | a90a1b656cff21d0187c93f54b6687ed0ad9a664 | |
parent | Use dev_open in validate geometry container (diff) | |
download | mdadm-7d8935cbb0fdb2b776b736bffc00323a04e5f788.tar.xz mdadm-7d8935cbb0fdb2b776b736bffc00323a04e5f788.zip |
imsm: correct offset for 4k disks in --examine output
"Sector Offset" field in Examine output was always printed in 512
byte sectors. Update it to support 4096 sector size.
Signed-off-by: Oleksandr Shchirskyi <oleksandr.shchirskyi@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 5356ca51..88636e0b 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1663,7 +1663,7 @@ static void print_imsm_dev(struct intel_super *super, (unsigned long long)sz * 512 / super->sector_size, human_size(sz * 512)); printf(" Sector Offset : %llu\n", - pba_of_lba0(map)); + pba_of_lba0(map) * 512 / super->sector_size); printf(" Num Stripes : %llu\n", num_data_stripes(map)); printf(" Chunk Size : %u KiB", |