commit | 394ed8e4743b0cfc5496fe49059fbfc2bc8eae35 | [log] [tgz] |
---|---|---|
author | Shaohua Li <shli@fb.com> | Wed Jan 04 16:10:19 2017 -0800 |
committer | Shaohua Li <shli@fb.com> | Thu Jan 05 11:45:18 2017 -0800 |
tree | 65412c7b017be0fc1a2316f4a0778328421a0f4c | |
parent | 99f17890f04cff0262de7393c60a2f6d9c9c7e71 [diff] |
md: cleanup mddev flag clear for takeover Commit 6995f0b (md: takeover should clear unrelated bits) clear unrelated bits, but it's quite fragile. To avoid error in the future, define a macro for unsupported mddev flags for each raid type and use it to clear unsupported mddev flags. This should be less error-prone. Suggested-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>