Message ID | 20220622202519.35905-4-logang@deltatee.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | Bug fixes and testing improvments | expand |
diff --git a/super-ddf.c b/super-ddf.c index 9d867f6910f3..949e7d155474 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3369,9 +3369,6 @@ static int validate_geometry_ddf(struct supertype *st, * If given BVDs, we make an SVD, changing all the GUIDs in the process. */ - if (*chunk == UnSet) - *chunk = DEFAULT_CHUNK; - if (level == LEVEL_NONE) level = LEVEL_CONTAINER; if (level == LEVEL_CONTAINER) { @@ -3381,6 +3378,9 @@ static int validate_geometry_ddf(struct supertype *st, freesize, verbose); } + if (*chunk == UnSet) + *chunk = DEFAULT_CHUNK; + if (!dev) { mdu_array_info_t array = { .level = level,