]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-gpt.c
DDF: container_content_ddf: handle RAID layout for RAID10
[thirdparty/mdadm.git] / super-gpt.c
index fa7fdabea004092db104bc1f838f00a5f2b06be6..8f7d4d93e0585eb2fec48d7d5d879c2f06161875 100644 (file)
@@ -82,8 +82,6 @@ static int load_gpt(struct supertype *st, int fd, char *devname)
                return 1;
        }
 
-       ioctl(fd, BLKFLSBUF, 0); /* make sure we read current data */
-
        lseek(fd, 0, 0);
        if (read(fd, super, sizeof(*super)) != sizeof(*super)) {
        no_read:
@@ -196,6 +194,7 @@ static struct supertype *match_metadata_desc(char *arg)
 static int validate_geometry(struct supertype *st, int level,
                             int layout, int raiddisks,
                             int *chunk, unsigned long long size,
+                            unsigned long long data_offset,
                             char *subdev, unsigned long long *freesize,
                             int verbose)
 {