Index: uspace/app/hrctl/hrctl.c
===================================================================
--- uspace/app/hrctl/hrctl.c	(revision 6124ee1520304f778039d7422108bb55b56b921c)
+++ uspace/app/hrctl/hrctl.c	(revision 1cfa1623d91869bcfdf53675e257bf82b8522f47)
@@ -59,4 +59,5 @@
     "  -s, --status              display status of active arrays\n"
     "  -T, --stop                stop an active array\n"
+    "  -F, --fail-extent         fail an extent, use with -T and set it before\n"
     "  -c, --create=NAME         create new array\n"
     "  -a, --assemble=NAME       assemble an existing array\n"
@@ -88,4 +89,5 @@
 	{ "assemble-file", required_argument, 0, 'A' },
 	{ "stop", required_argument, 0, 'T' },
+	{ "fail-extent", required_argument, 0, 'F' },
 	{ 0, 0, 0, 0 }
 };
@@ -220,4 +222,5 @@
 	int retval, c;
 	bool create, assemble;
+	long fail_extent = -1;
 	hr_t *hr;
 	hr_config_t *cfg;
@@ -241,5 +244,5 @@
 
 	while (c != -1) {
-		c = getopt_long(argc, argv, "hsC:c:A:a:l:0145Ln:T:",
+		c = getopt_long(argc, argv, "hsC:c:A:a:l:0145Ln:T:F:",
 		    long_options, NULL);
 		switch (c) {
@@ -286,5 +289,5 @@
 			break;
 		case 'T':
-			rc = hr_stop(optarg);
+			rc = hr_stop(optarg, fail_extent);
 			free(cfg);
 			if (rc != EOK) {
@@ -295,4 +298,7 @@
 			}
 			return 0;
+		case 'F':
+			fail_extent = strtol(optarg, NULL, 10);
+			break;
 		case 'l':
 			if (cfg->level != HR_LVL_UNKNOWN)
