]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: detect the '-R' option in getopt
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 4 Feb 2016 21:41:18 +0000 (08:41 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 4 Feb 2016 21:41:18 +0000 (08:41 +1100)
Configure getopt to accept the -R argument to pwrite.
Accept -F and -B while we're at it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/pwrite.c

index fd9114d1eb6bdf2ae3db1591aea2c0aebbc1223c..4fc8de63c12f0a14b518c5d6d92aa15a0e8f01e4 100644 (file)
@@ -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);