diff options
author | Neil Brown <neilb@suse.de> | 2006-06-02 05:53:22 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-06-02 05:53:22 +0000 |
commit | ab56093f3b0fd59c49a5cdef22c0480e589f0989 (patch) | |
tree | 4eeefdb882f6d691adf7e46079199c90ffb6bd98 /mdadm.c | |
parent | 0ae03b8ad8257e310a06bf3c496b8ce1fa6afb48 (diff) | |
download | mdadm-ab56093f3b0fd59c49a5cdef22c0480e589f0989.tar.gz mdadm-ab56093f3b0fd59c49a5cdef22c0480e589f0989.tar.xz mdadm-ab56093f3b0fd59c49a5cdef22c0480e589f0989.zip |
Get --stop to honour --quiet
And as a side effect, if --quiet isn't given, stopped devices are
reported.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -931,7 +931,7 @@ int main(int argc, char *argv[]) if (!rv && readonly < 0) rv = Manage_ro(devlist->devname, mdfd, readonly); if (!rv && runstop) - rv = Manage_runstop(devlist->devname, mdfd, runstop, 0); + rv = Manage_runstop(devlist->devname, mdfd, runstop, quiet); break; case ASSEMBLE: if (devs_found == 1 && ident.uuid_set == 0 && @@ -1164,7 +1164,7 @@ int main(int argc, char *argv[]) } mdfd = open_mddev(name, 1); if (mdfd >= 0) { - if (Manage_runstop(name, mdfd, -1, !last)) + if (Manage_runstop(name, mdfd, -1, quiet?1:last?0:-1)) err = 1; else progress = 1; @@ -1195,9 +1195,9 @@ int main(int argc, char *argv[]) if (mdfd>=0) { switch(dv->disposition) { case 'R': - rv |= Manage_runstop(dv->devname, mdfd, 1, 0); break; + rv |= Manage_runstop(dv->devname, mdfd, 1, quiet); break; case 'S': - rv |= Manage_runstop(dv->devname, mdfd, -1, 0); break; + rv |= Manage_runstop(dv->devname, mdfd, -1, quiet); break; case 'o': rv |= Manage_ro(dv->devname, mdfd, 1); break; case 'w': |