printf("\n");
}
-
if (calc_sb_1_csum(sb) == sb->sb_csum)
printf(" Checksum : %x - correct\n", __le32_to_cpu(sb->sb_csum));
else
printf("\n");
}
-
static void brief_examine_super1(struct supertype *st, int verbose)
{
struct mdp_superblock_1 *sb = st->sb;
info->disk.state |= 1 << MD_DISK_REPLACEMENT;
}
-
if (sb->feature_map & __le32_to_cpu(MD_FEATURE_RECOVERY_OFFSET))
info->recovery_start = __le32_to_cpu(sb->recovery_offset);
else
return -EINVAL;
}
-
-
if (sb_offset != __le64_to_cpu(sb->super_offset) &&
0 != __le64_to_cpu(sb->super_offset)
) {
sb->events = 0;
refst = dup_super(st);
- if (load_super1(refst, di->fd, NULL)==0) {
+ if (load_super1(refst, di->fd, NULL)==0) {
struct mdp_superblock_1 *refsb = refst->sb;
memcpy(sb->device_uuid, refsb->device_uuid, 16);
goto error_out;
}
-
/*
* Calculate the position of the superblock.
* It is always aligned to a 4K boundary and
return 0;
}
-
static struct supertype *match_metadata_desc1(char *arg)
{
struct supertype *st = xcalloc(1, sizeof(*st));
else
devsize -= 8;
-
if (st->minor_version < 0)
/* not specified, so time to set default */
st->minor_version = 2;
bitmap_super_t *bms = (bitmap_super_t*)(((char*)sb) + MAX_SB_SIZE);
int uuid[4];
-
if (__le64_to_cpu(sb->data_size) == 0)
/* Must be creating the array, else data_size would be non-zero */
creating = 1;