summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-27 09:18:55 +1000
committerNeil Brown <neilb@suse.de>2008-05-27 09:18:55 +1000
commit159c3a1a7785693d21f5226182f9c066882bef66 (patch)
tree60eb38558c53783bcf7c2b7a6cdf387880c1c58d /super-ddf.c
parented9d66aadec7ae41751e3a95352628814b47fbad (diff)
downloadmdadm-159c3a1a7785693d21f5226182f9c066882bef66.tar.gz
mdadm-159c3a1a7785693d21f5226182f9c066882bef66.tar.xz
mdadm-159c3a1a7785693d21f5226182f9c066882bef66.zip
Remove st->text_version in favour of info->text_version
I want the metadata handler to have more control over the 'version', particularly for arrays which are members of containers. So discard st->text_version and instead use info->text_version which getinfo_super can initialise.
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/super-ddf.c b/super-ddf.c
index c7dcc1a..fe76509 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1212,6 +1212,8 @@ static void getinfo_super_ddf(struct supertype *st, struct mdinfo *info)
info->reshape_active = 0;
+ strcpy(info->text_version, "ddf");
+
// uuid_from_super_ddf(info->uuid, sbv);
// info->name[] ?? ;
@@ -1259,6 +1261,10 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info)
uuid_from_super_ddf(st, info->uuid);
+ sprintf(info->text_version, "/%s/%d",
+ devnum2devname(st->container_dev),
+ info->container_member);
+
// info->name[] ?? ;
}
@@ -2680,7 +2686,6 @@ struct superswitch super_ddf = {
.major = 1000,
.swapuuid = 0,
.external = 1,
- .text_version = "ddf",
/* for mdmon */
.open_new = ddf_open_new,
@@ -2713,7 +2718,6 @@ struct superswitch super_ddf_container = {
.major = 1000,
.swapuuid = 0,
.external = 1,
- .text_version = "ddf",
};
struct superswitch super_ddf_bvd = {
@@ -2737,7 +2741,6 @@ struct superswitch super_ddf_bvd = {
.major = 1001,
.swapuuid = 0,
.external = 2,
- .text_version = "ddf",
};
struct superswitch super_ddf_svd = {
@@ -2756,5 +2759,4 @@ struct superswitch super_ddf_svd = {
.major = 1002,
.swapuuid = 0,
.external = 2,
- .text_version = "ddf",
};