summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-23 14:41:29 +1000
committerNeilBrown <neilb@suse.de>2013-05-28 16:44:22 +1000
commitafa368f49ac0a12185f243eeedfa8242f2c7a036 (patch)
tree996475ef499a520f83997ebfc520069909b01cf2 /mdadm.c
parentd6e4b44fdbd489e5e8ff1bbcaf17315131182ca3 (diff)
Assemble: --update=metadata converts v0.90 to v1.0
This allows the smooth conversion of legacy 0.90 arrays to 1.0 metadata. Old metadata is likely to remain but will be ignored. It can be removed with mdadm --zero-superblock --metadata=0.90 /dev/whatever Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index c6a8ebf1..83f1caa9 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -755,6 +755,8 @@ int main(int argc, char *argv[])
continue;
if (strcmp(c.update, "no-bbl") == 0)
continue;
+ if (strcmp(c.update, "metadata") == 0)
+ continue;
if (strcmp(c.update, "byteorder")==0) {
if (ss) {
pr_err("must not set metadata"
@@ -785,7 +787,7 @@ int main(int argc, char *argv[])
fprintf(outf, "Valid --update options are:\n"
" 'sparc2.2', 'super-minor', 'uuid', 'name', 'resync',\n"
" 'summaries', 'homehost', 'byteorder', 'devicesize',\n"
- " 'no-bitmap'\n");
+ " 'no-bitmap', 'metadata'\n");
exit(outf == stdout ? 0 : 2);
case O(MANAGE,'U'):