]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Make zpool attach -o ashift=... actually work
authorCyril Plisko <cyril.plisko@mountall.com>
Fri, 30 Nov 2012 21:13:28 +0000 (23:13 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Nov 2012 21:50:26 +0000 (13:50 -0800)
Commit df83110856950c8e7b16a7e94cdf42b8531b9cc8 missed update to
getopt() call, while delivering all the rest. This commit adds
"o" to getopt().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #566

cmd/zpool/zpool_main.c

index a684f3bbb0fbbdc02389aa99742249495548d6a9..cb0535a987a628e89c86cb77a7c412aa0d2f80ed 100644 (file)
@@ -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;