]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Add --data-offset flag for Create and Grow
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index 322af06d25e2069413b0ec19b28692c234863966..79c47be41afcbed146cef873347c7fef9d428423 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -326,6 +326,7 @@ enum special_options {
        OffRootOpt,
        Prefer,
        KillOpt,
+       DataOffset,
 };
 
 enum prefix_standard {
@@ -726,7 +727,8 @@ extern struct superswitch {
         */
        int (*init_super)(struct supertype *st, mdu_array_info_t *info,
                          unsigned long long size, char *name,
-                         char *homehost, int *uuid);
+                         char *homehost, int *uuid,
+                         unsigned long long data_offset);
 
        /* update the metadata to include new device, either at create or
         * when hot-adding a spare.
@@ -778,6 +780,7 @@ extern struct superswitch {
        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);
 
@@ -1097,6 +1100,7 @@ extern int Grow_addbitmap(char *devname, int fd,
                          struct context *c, struct shape *s);
 extern int Grow_reshape(char *devname, int fd,
                        struct mddev_dev *devlist,
+                       unsigned long long data_offset,
                        struct context *c, struct shape *s);
 extern int Grow_restart(struct supertype *st, struct mdinfo *info,
                        int *fdlist, int cnt, char *backup_file, int verbose);
@@ -1125,7 +1129,8 @@ extern int Create(struct supertype *st, char *mddev,
                  char *name, int *uuid,
                  int subdevs, struct mddev_dev *devlist,
                  struct shape *s,
-                 struct context *c);
+                 struct context *c,
+                 unsigned long long data_offset);
 
 extern int Detail(char *dev, struct context *c);
 extern int Detail_Platform(struct superswitch *ss, int scan, int verbose, int export, char *controller_path);