Make zpool attach -o ashift=... actually work

Commit df83110856 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
This commit is contained in:
Cyril Plisko 2012-11-30 23:13:28 +02:00 committed by Brian Behlendorf
parent c3275b56a1
commit 4588bf5701

View File

@ -2889,7 +2889,7 @@ zpool_do_attach_or_replace(int argc, char **argv, int replacing)
int ret; int ret;
/* check options */ /* check options */
while ((c = getopt(argc, argv, "f")) != -1) { while ((c = getopt(argc, argv, "fo:")) != -1) {
switch (c) { switch (c) {
case 'f': case 'f':
force = B_TRUE; force = B_TRUE;