From: Cyril Plisko Date: Fri, 30 Nov 2012 21:13:28 +0000 (+0200) Subject: Make zpool attach -o ashift=... actually work X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=4588bf57017f5d2693cd7b3f763640fe8cfe5909;hp=c3275b56a1470ed255441df6ff105d0c3c095d8b;p=zfs.git 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 a684f3b..cb0535a 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;