]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: allow -F in open args, remove from help
authorEric Sandeen <sandeen@sandeen.net>
Thu, 8 Mar 2012 22:45:07 +0000 (16:45 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 8 Mar 2012 22:45:07 +0000 (16:45 -0600)
Now that -F ("foreign") is automagic, we should no longer list
it in the help output for open, but we should still accept
it for compatibility; esp. as it is still in the case statement.
Oops.

Remove the -F option from the manpage open section as well.

Reported-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
io/open.c
man/man8/xfs_io.8

index ac39ccc5b736aa2d6e937fa08fe6247738b5625b..46538baa19bf5338bb8003521f4d8d5900769a6d 100644 (file)
--- a/io/open.c
+++ b/io/open.c
@@ -240,7 +240,6 @@ open_help(void)
 "\n"
 " Opens a file for subsequent use by all of the other xfs_io commands.\n"
 " With no arguments, open uses the stat command to show the current file.\n"
-" -F -- foreign filesystem file, disallow XFS-specific commands\n"
 " -a -- open with the O_APPEND flag (append-only mode)\n"
 " -d -- open with O_DIRECT (non-buffered IO, note alignment constraints)\n"
 " -f -- open with O_CREAT (create the file if it doesn't exist)\n"
@@ -274,7 +273,7 @@ open_f(
                return 0;
        }
 
-       while ((c = getopt(argc, argv, "Racdfm:nrstx")) != EOF) {
+       while ((c = getopt(argc, argv, "FRacdfm:nrstx")) != EOF) {
                switch (c) {
                case 'F':
                        /* Ignored / deprecated now, handled automatically */
index 332718c4b0b057bc26ff418b483bb55ae49d52e7..ebbfdec838c2bd59a440af13b8d48a88060967e4 100644 (file)
@@ -83,7 +83,7 @@ command for more details on any command.
 Display a list of all open files and (optionally) switch to an alternate
 current open file.
 .TP
-.BI "open [[ \-FacdfrstR ] " path " ]"
+.BI "open [[ \-acdfrstR ] " path " ]"
 Closes the current file, and opens the file specified by
 .I path
 instead. Without any arguments, displays statistics about the current
@@ -93,10 +93,6 @@ command.
 .RS 1.0i
 .PD 0
 .TP 0.4i
-.B \-F
-allows non-XFS (foreign) files to be opened and
-operated on with a restricted command set.
-.TP
 .B \-a
 opens append-only (O_APPEND).
 .TP