From 19c986195eab02a3b1da7b532df623cf46d92418 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 31 Jan 2024 06:50:16 +0100 Subject: Adding upstream version 4.2+20240118. Signed-off-by: Daniel Baumann --- super1.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'super1.c') diff --git a/super1.c b/super1.c index 1da71b9..dfde462 100644 --- a/super1.c +++ b/super1.c @@ -544,26 +544,6 @@ static void examine_super1(struct supertype *st, char *homehost) break; } printf("\n"); -#if 0 - /* This turns out to just be confusing */ - printf(" Array Slot : %d (", __le32_to_cpu(sb->dev_number)); - for (i = __le32_to_cpu(sb->max_dev); i > 0 ; i--) - if (__le16_to_cpu(sb->dev_roles[i-1]) != MD_DISK_ROLE_SPARE) - break; - for (d = 0; d < i; d++) { - int role = __le16_to_cpu(sb->dev_roles[d]); - if (d) - printf(", "); - if (role == MD_DISK_ROLE_SPARE) - printf("empty"); - else - if(role == MD_DISK_ROLE_FAULTY) - printf("failed"); - else - printf("%d", role); - } - printf(")\n"); -#endif printf(" Device Role : "); role = role_from_sb(sb); if (role >= MD_DISK_ROLE_FAULTY) -- cgit v1.2.3