Merging upstream version 4.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
07b992239b
commit
0a7cc54657
13 changed files with 76 additions and 100 deletions
12
super1.c
12
super1.c
|
@ -645,10 +645,6 @@ static void brief_examine_super1(struct supertype *st, int verbose)
|
|||
printf(":");
|
||||
printf("%02x", sb->set_uuid[i]);
|
||||
}
|
||||
if (sb->set_name[0]) {
|
||||
printf(" name=");
|
||||
print_quoted(sb->set_name);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
@ -875,10 +871,6 @@ static void brief_detail_super1(struct supertype *st, char *subarray)
|
|||
struct mdp_superblock_1 *sb = st->sb;
|
||||
int i;
|
||||
|
||||
if (sb->set_name[0]) {
|
||||
printf(" name=");
|
||||
print_quoted(sb->set_name);
|
||||
}
|
||||
printf(" UUID=");
|
||||
for (i = 0; i < 16; i++) {
|
||||
if ((i & 3) == 0 && i != 0)
|
||||
|
@ -1356,6 +1348,10 @@ static int update_super1(struct supertype *st, struct mdinfo *info,
|
|||
__cpu_to_le16(info->disk.raid_disk);
|
||||
break;
|
||||
}
|
||||
case UOPT_RESYNC:
|
||||
/* make sure resync happens */
|
||||
sb->resync_offset = 0;
|
||||
break;
|
||||
case UOPT_UUID:
|
||||
copy_uuid(sb->set_uuid, info->uuid, super1.swapuuid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue