]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fsx: add missing -T option to getopt_long()
authorFilipe Manana <fdmanana@suse.com>
Mon, 12 Jan 2026 13:44:09 +0000 (13:44 +0000)
committerZorro Lang <zlang@kernel.org>
Sun, 18 Jan 2026 17:18:57 +0000 (01:18 +0800)
Currently fsx fails with an invalid argument error when we pass the -T
option (do not use dontcache IO) to it because it's not listed in the
gepopt_long() call.

Fix this and add T to the getopt_long() call.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
ltp/fsx.c

index 626976dd4f9f2788e0a54458ede5c43b1c99a976..8626662bfb9a2e69b1f20d9c5333d4cde8785834 100644 (file)
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -3160,7 +3160,7 @@ main(int argc, char **argv)
        setvbuf(stdout, (char *)0, _IOLBF, 0); /* line buffered stdout */
 
        while ((ch = getopt_long(argc, argv,
-                                "0ab:c:de:fg:hi:j:kl:m:no:p:qr:s:t:uw:xyABD:EFJKHzCILN:OP:RS:UWXZ",
+                                "0ab:c:de:fg:hi:j:kl:m:no:p:qr:s:t:uw:xyABD:EFJKHzCILN:TOP:RS:UWXZ",
                                 longopts, NULL)) != EOF)
                switch (ch) {
                case 'a':