]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
util: split get_maj_min() out from dev_open()
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index c0726bff5b068f914cdc45688c7105eaa111820c..fc1fd31854292042d67b554ae42c0bbc51f5d280 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -258,6 +258,7 @@ struct createinfo {
        int     mode;
        int     symlinks;
        int     names;
+       int     bblist;
        struct supertype *supertype;
 };
 
@@ -929,7 +930,10 @@ extern struct superswitch {
        void (*sync_metadata)(struct supertype *st);
        void (*process_update)(struct supertype *st,
                               struct metadata_update *update);
-       void (*prepare_update)(struct supertype *st,
+       /* Prepare updates allocates extra memory that might be
+        * needed.  If the update cannot be understood,  return 0.
+        */
+       int (*prepare_update)(struct supertype *st,
                               struct metadata_update *update);
 
        /* activate_spare will check if the array is degraded and, if it
@@ -960,6 +964,9 @@ extern struct superswitch {
        /* for external backup area */
        int (*recover_backup)(struct supertype *st, struct mdinfo *info);
 
+       /* validate container after assemble */
+       int (*validate_container)(struct mdinfo *info);
+
        int swapuuid; /* true if uuid is bigending rather than hostendian */
        int external;
        const char *name; /* canonical metadata name */
@@ -1276,6 +1283,7 @@ extern int check_partitions(int fd, char *dname,
                            unsigned long long size);
 
 extern int get_mdp_major(void);
+extern int get_maj_min(char *dev, int *major, int *minor);
 extern int dev_open(char *dev, int flags);
 extern int open_dev(char *devnm);
 extern void reopen_mddev(int mdfd);