commit | 17115e0388ece8d7141c0282c88e7dfc61953f92 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Mon Jan 16 22:14:57 2006 -0800 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Mon Jan 16 23:15:32 2006 -0800 |
tree | 80009eb4e7158a6c57de447901a04de3f799135d | |
parent | 4c2645830e29c082217662e7486572e9637e9f1d [diff] |
[PATCH] md: Clear clevel whenever level is set. The 'level' of an md array can be set as either a number of a string. When one is set, the other must be marked 'undefined'. This wasn't being done in one place: where new arrays are created. Result: if md1 is a raid1, it is stopped and a raid5 is created there, it might still appear to be a raid1. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>