diff options
author | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-04-05 21:09:18 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-04-05 21:09:18 +0200 |
commit | 6142741d144824c31b733f9d6e6e240b159effc0 (patch) | |
tree | 70006393f7642b9b30badc2e9a1a482fa6a2a354 /Assemble.c | |
parent | util/set_array_info: Simplify code since md_get_version returns a constant (diff) | |
download | mdadm-6142741d144824c31b733f9d6e6e240b159effc0.tar.xz mdadm-6142741d144824c31b733f9d6e6e240b159effc0.zip |
Assemble/Assemble: Stop checking kernel md driver version
Any kernel released during the last decade will return 9003 from
md_get_version() so no point in checking that.
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1477,8 +1477,7 @@ try_again: return 1; } mddev = chosen_name; - if (get_linux_version() < 2004000 || - md_get_version(mdfd) < 9000) { + if (get_linux_version() < 2004000) { pr_err("Assemble requires Linux 2.4 or later, and\n" " md driver version 0.90.0 or later.\n" " Upgrade your kernel or try --build\n"); |