diff options
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index 7a7f5fe6..20f4f257 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; |