diff options
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -601,11 +601,16 @@ static int update_super0(struct supertype *st, struct mdinfo *info, static int init_super0(struct supertype *st, mdu_array_info_t *info, unsigned long long size, char *ignored_name, char *homehost, - int *uuid) + int *uuid, unsigned long long data_offset) { mdp_super_t *sb; int spares; + if (data_offset != INVALID_SECTORS) { + fprintf(stderr, Name ": data-offset not support for 0.90\n"); + return 0; + } + if (posix_memalign((void**)&sb, 4096, MD_SB_BYTES + ROUND_UP(sizeof(bitmap_super_t), 4096)) != 0) { pr_err("%s could not allocate superblock\n", __func__); |