This results in default case which will display the error message
that command is not found. This is required for xfs_io builds which
did not support pwritev and an attempt is made to use -V.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
[sandeen@sandeen.net: restrict default: printf to ifdef'd options]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
case 'u':
uflag = 1;
break;
+#ifdef HAVE_PWRITEV
case 'V':
vectors = strtoul(optarg, &sp, 0);
if (!sp || sp == optarg) {
return 0;
}
break;
+#endif
case 'w':
wflag = 1;
break;
}
break;
default:
- return command_usage(&pwrite_cmd);
+ /* Handle ifdef'd-out options above */
+ if (c != '?')
+ printf(_("%s: command -%c not supported\n"), argv[0], c);
+ else
+ command_usage(&pwrite_cmd);
+ return 0;
}
}
if (((skip || dflag) && !infile) || (optind != argc - 2))