summaryrefslogtreecommitdiffstats
path: root/mdmon.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@gmail.com>2017-04-05 21:39:51 +0200
committerJes Sorensen <Jes.Sorensen@gmail.com>2017-04-05 21:39:51 +0200
commit15d924d363a2bc02aa4a489241333be3d7820978 (patch)
tree380df03658ebffc5ef335ca510a412ce86a8d4c2 /mdmon.c
parentbitmap: Remove use of md_get_version() (diff)
downloadmdadm-15d924d363a2bc02aa4a489241333be3d7820978.tar.xz
mdadm-15d924d363a2bc02aa4a489241333be3d7820978.zip
mdmon: Stop bothering about md_get_version()
If anyone has a kernel with md driver older than 0.90.03 they will also know where to find older versions of mdadm. Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'mdmon.c')
-rw-r--r--mdmon.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mdmon.c b/mdmon.c
index 95e9bbae..0955fcc5 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -408,10 +408,6 @@ static int mdmon(char *devnm, int must_fork, int takeover)
pr_err("%s: %s\n", devnm, strerror(errno));
return 1;
}
- if (md_get_version(mdfd) < 0) {
- pr_err("%s: Not an md device\n", devnm);
- return 1;
- }
/* Fork, and have the child tell us when they are ready */
if (must_fork) {