diff options
author | NeilBrown <neilb@suse.de> | 2013-05-23 06:41:29 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-05-28 08:44:22 +0200 |
commit | afa368f49ac0a12185f243eeedfa8242f2c7a036 (patch) | |
tree | 996475ef499a520f83997ebfc520069909b01cf2 /mdadm.c | |
parent | super1: fix some casts of signed superblock fields. (diff) | |
download | mdadm-afa368f49ac0a12185f243eeedfa8242f2c7a036.tar.xz mdadm-afa368f49ac0a12185f243eeedfa8242f2c7a036.zip |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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'): |