From: Cyril Plisko Date: Fri, 30 Nov 2012 21:13:28 +0000 (+0200) Subject: Make zpool attach -o ashift=... actually work X-Git-Tag: zfs-0.6.0-rc13~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4588bf57017f5d2693cd7b3f763640fe8cfe5909;p=zfs 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 Issue #566 --- 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;