summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-02 00:15:10 +0200
committerNeilBrown <neilb@suse.de>2015-07-02 00:15:10 +0200
commit9581efb1ae9348ef33d10d781cedde375c0d62c4 (patch)
treef6c9a71da1a039425bf80d52b87c56b4cdba69af /mdadm.c
parentGrow: fix typo in comment (diff)
downloadmdadm-9581efb1ae9348ef33d10d781cedde375c0d62c4.tar.xz
mdadm-9581efb1ae9348ef33d10d781cedde375c0d62c4.zip
mdstat: discard 'dev' field, just use 'devnm'
These both have the same value, and have done since the 'devnm' concept was introduced. So discard the pointless duplicate. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdadm.c b/mdadm.c
index 3e8c49b5..3dd1bd2c 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1675,7 +1675,7 @@ static int misc_scan(char devmode, struct context *c)
if (!name) {
pr_err("cannot find device file for %s\n",
- e->dev);
+ e->devnm);
continue;
}
if (devmode == 'D')
@@ -1710,7 +1710,7 @@ static int stop_scan(int verbose)
if (!name) {
pr_err("cannot find device file for %s\n",
- e->dev);
+ e->devnm);
continue;
}
mdfd = open_mddev(name, 1);