]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-ddf.c
Add some comments to explain some of the bits of superswitch.
[thirdparty/mdadm.git] / super-ddf.c
index 2cc876dcb366bc28be26d43e9222fb29a64e57a9..5644aeab9e32a490106c9e8a92db0b846f963d54 100644 (file)
@@ -425,7 +425,7 @@ struct ddf_super {
 #define offsetof(t,f) ((size_t)&(((t*)0)->f))
 #endif
 
-extern struct superswitch super_ddf_container, super_ddf_bvd, super_ddf;
+static struct superswitch super_ddf_container, super_ddf_bvd, super_ddf_svd;
 
 static int calc_crc(void *buf, int len)
 {
@@ -3119,7 +3119,6 @@ struct superswitch super_ddf = {
        .match_metadata_desc = match_metadata_desc_ddf,
        .getinfo_super_n  = getinfo_super_n_container,
 
-       .major          = 1000,
        .swapuuid       = 0,
        .external       = 1,
 
@@ -3136,7 +3135,7 @@ struct superswitch super_ddf = {
 /* Super_ddf_container is set by validate_geometry_ddf when given a
  * device that is not part of any array
  */
-struct superswitch super_ddf_container = {
+static struct superswitch super_ddf_container = {
 #ifndef MDASSEMBLE
        .validate_geometry = validate_geometry_ddf_container,
        .write_init_super = write_init_super_ddf,
@@ -3152,12 +3151,11 @@ struct superswitch super_ddf_container = {
        .container_content = container_content_ddf,
        .getinfo_super_n  = getinfo_super_n_container,
 
-       .major          = 1000,
        .swapuuid       = 0,
        .external       = 1,
 };
 
-struct superswitch super_ddf_bvd = {
+static struct superswitch super_ddf_bvd = {
 #ifndef        MDASSEMBLE
 //     .detail_super   = detail_super_ddf_bvd,
 //     .brief_detail_super = brief_detail_super_ddf_bvd,
@@ -3174,12 +3172,11 @@ struct superswitch super_ddf_bvd = {
        .free_super     = free_super_ddf,
        .match_metadata_desc = match_metadata_desc_ddf_bvd,
 
-       .major          = 1001,
        .swapuuid       = 0,
        .external       = 2,
 };
 
-struct superswitch super_ddf_svd = {
+static struct superswitch super_ddf_svd = {
 #ifndef        MDASSEMBLE
 //     .detail_super   = detail_super_ddf_svd,
 //     .brief_detail_super = brief_detail_super_ddf_svd,
@@ -3192,7 +3189,6 @@ struct superswitch super_ddf_svd = {
        .free_super     = free_super_ddf,
        .match_metadata_desc = match_metadata_desc_ddf_svd,
 
-       .major          = 1002,
        .swapuuid       = 0,
        .external       = 2,
 };