All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] imsm: correct offset for 4k disks in --examine output
@ 2021-06-18 13:53 Oleksandr Shchirskyi
  2021-06-18 13:53 ` [PATCH 2/3] Remove Spare drives line from details for external metadata Oleksandr Shchirskyi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oleksandr Shchirskyi @ 2021-06-18 13:53 UTC (permalink / raw)
  To: jes; +Cc: linux-raid, Oleksandr Shchirskyi

"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>
---
 super-intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/super-intel.c b/super-intel.c
index 54699129..caeb6db3 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",
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-16 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 13:53 [PATCH 1/3] imsm: correct offset for 4k disks in --examine output Oleksandr Shchirskyi
2021-06-18 13:53 ` [PATCH 2/3] Remove Spare drives line from details for external metadata Oleksandr Shchirskyi
2021-06-18 13:53 ` [PATCH 3/3] Don't associate spares with other arrays during RAID Examine Oleksandr Shchirskyi
2021-07-16 14:26 ` [PATCH 1/3] imsm: correct offset for 4k disks in --examine output Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.