summaryrefslogtreecommitdiffstats
path: root/cmd/zpool
diff options
context:
space:
mode:
authorCyril Plisko <[email protected]>2012-11-30 23:13:28 +0200
committerBrian Behlendorf <[email protected]>2012-11-30 13:50:26 -0800
commit4588bf57017f5d2693cd7b3f763640fe8cfe5909 (patch)
treec1d40dc88f61ee271900958fec0999068ab575f9 /cmd/zpool
parentc3275b56a1470ed255441df6ff105d0c3c095d8b (diff)
Make zpool attach -o ashift=... actually work
Commit df83110856950c8e7b16a7e94cdf42b8531b9cc8 missed update to getopt() call, while delivering all the rest. This commit adds "o" to getopt(). Signed-off-by: Brian Behlendorf <[email protected]> Issue #566
Diffstat (limited to 'cmd/zpool')
-rw-r--r--cmd/zpool/zpool_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index a684f3bbb..cb0535a98 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -2889,7 +2889,7 @@ zpool_do_attach_or_replace(int argc, char **argv, int replacing)
int ret;
/* check options */
- while ((c = getopt(argc, argv, "f")) != -1) {
+ while ((c = getopt(argc, argv, "fo:")) != -1) {
switch (c) {
case 'f':
force = B_TRUE;