diff options
author | NeilBrown <neilb@suse.de> | 2009-03-09 11:16:53 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-09 11:16:53 +1100 |
commit | b640a252ee4d0c7be9ab31d9300aec00571b6238 (patch) | |
tree | 12ca36b06babede8272f5e4eeab26e74e974e0dc /mdadm.c | |
parent | e8e1c176d86433b6d5ebab246257e6f506402fa4 (diff) | |
download | mdadm-b640a252ee4d0c7be9ab31d9300aec00571b6238.tar.gz mdadm-b640a252ee4d0c7be9ab31d9300aec00571b6238.tar.xz mdadm-b640a252ee4d0c7be9ab31d9300aec00571b6238.zip |
Support new raid6 layouts needed for DDF
DDF raid6 layouts are subtly different from the standard 'md' layouts.
From 2.6.30 the kernel knows about these.
Teach mdadm about them, and also allow 'ddf' to set an appropriate default.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -437,7 +437,6 @@ int main(int argc, char *argv[]) exit(2); case 5: - case 6: layout = map_name(r5layout, optarg); if (layout==UnSet) { fprintf(stderr, Name ": layout %s not understood for raid5.\n", @@ -445,6 +444,14 @@ int main(int argc, char *argv[]) exit(2); } break; + case 6: + layout = map_name(r6layout, optarg); + if (layout==UnSet) { + fprintf(stderr, Name ": layout %s not understood for raid6.\n", + optarg); + exit(2); + } + break; case 10: /* 'f', 'o' or 'n' followed by a number <= raid_disks */ |