diff --git a/super-ddf.c b/super-ddf.c index 7a7f5fe..20f4f25 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2907,7 +2907,8 @@ static int __write_ddf_structure(struct dl *d, struct ddf_super *ddf, __u8 type, } if (write(fd, null_aligned, togo) < 0) break; - } + } else + lseek(fd, conf_size, SEEK_CUR); } if (i <= n_config) goto out;