summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:31:22 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:31:22 +1100
commitb90c0e9a12090c435f23da8378b3436c93f77f2f (patch)
tree221aa0ad769db836533999ef8fd2003e90904066 /mdadm.c
parente336254463da8ffa9923118a9c802253d312b8bb (diff)
downloadmdadm-b90c0e9a12090c435f23da8378b3436c93f77f2f.tar.gz
mdadm-b90c0e9a12090c435f23da8378b3436c93f77f2f.tar.xz
mdadm-b90c0e9a12090c435f23da8378b3436c93f77f2f.zip
--wait or -W will wait for resync activity to finish on the given devices.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index 41360c4..5fb1b8d 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -201,6 +201,7 @@ int main(int argc, char *argv[])
case 'S':
case 'o':
case 'w':
+ case 'W':
case 'K': if (!mode) newmode = MISC; break;
}
if (mode && newmode == mode) {
@@ -742,6 +743,7 @@ int main(int argc, char *argv[])
case O(MISC,'X'):
case O(MISC,'o'):
case O(MISC,'w'):
+ case O(MISC,'W'):
if (devmode && devmode != opt &&
(devmode == 'E' || (opt == 'E' && devmode != 'Q'))) {
fprintf(stderr, Name ": --examine/-E cannot be given with -%c\n",
@@ -1138,7 +1140,6 @@ int main(int argc, char *argv[])
bitmap_file, bitmap_chunk, write_behind, delay);
break;
case MISC:
-
if (devmode == 'E') {
if (devlist == NULL && !scan) {
fprintf(stderr, Name ": No devices to examine\n");
@@ -1219,6 +1220,8 @@ int main(int argc, char *argv[])
rv |= Query(dv->devname); continue;
case 'X':
rv |= ExamineBitmap(dv->devname, brief, ss); continue;
+ case 'W':
+ rv |= Wait(dv->devname); continue;
}
mdfd = open_mddev(dv->devname, 1);
if (mdfd>=0) {