]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Grow.c
Add --data-offset flag for Create and Grow
[thirdparty/mdadm.git] / Grow.c
diff --git a/Grow.c b/Grow.c
index 18fb3ee154a943edf47a656e0b13e464e8c26238..f6fe1683234f2393f23dabf4e74dd1dc31e0b9e9 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1440,6 +1440,7 @@ static int reshape_container(char *container, char *devname,
 
 int Grow_reshape(char *devname, int fd,
                 struct mddev_dev *devlist,
+                unsigned long long data_offset,
                 struct context *c, struct shape *s)
 {
        /* Make some changes in the shape of an array.
@@ -1476,6 +1477,11 @@ int Grow_reshape(char *devname, int fd,
        struct mdinfo info;
        struct mdinfo *sra;
 
+       if (data_offset != INVALID_SECTORS) {
+               fprintf(stderr, Name ": --grow --data-offset not yet supported\n");
+               return 1;
+       }
+
        if (ioctl(fd, GET_ARRAY_INFO, &array) < 0) {
                pr_err("%s is not an active md array - aborting\n",
                        devname);