From: Darrick J. Wong Date: Thu, 4 Feb 2016 21:41:18 +0000 (+1100) Subject: xfs_io: detect the '-R' option in getopt X-Git-Tag: v4.5.0-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00d50425cc06d447c1a208403f74298cd0718ff6;p=thirdparty%2Fxfsprogs-dev.git xfs_io: detect the '-R' option in getopt Configure getopt to accept the -R argument to pwrite. Accept -F and -B while we're at it. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- diff --git a/io/pwrite.c b/io/pwrite.c index fd9114d1e..4fc8de63c 100644 --- a/io/pwrite.c +++ b/io/pwrite.c @@ -259,7 +259,7 @@ pwrite_f( init_cvtnum(&fsblocksize, &fssectsize); bsize = fsblocksize; - while ((c = getopt(argc, argv, "b:Cdf:i:qs:S:uV:wWZ:")) != EOF) { + while ((c = getopt(argc, argv, "b:BCdf:Fi:qRs:S:uV:wWZ:")) != EOF) { switch (c) { case 'b': tmp = cvtnum(fsblocksize, fssectsize, optarg);