]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: remove the --verbose flag, as it doesn't actually do anything
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 29 Oct 2025 11:03:57 +0000 (12:03 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Nov 2025 13:02:06 +0000 (14:02 +0100)
Fourteen years ago, commit c7e0925def rewrote the `losetup` tool,
removing all references to the 'verbose' variable.  Three years
later, commit 60cb2c3720 removed the line 'verbose = 1' because
the compiler complained that the variable was set but never used.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/losetup.8.adoc
sys-utils/losetup.c

index f51710af87bf7bf64349697245a09cf85be453a5..131ebfa568cafb300e88dd6ec548b89a2cb3bdfa 100644 (file)
@@ -106,9 +106,6 @@ Set up a read-only loop device.
 *--direct-io*[**=on**|*off*]::
 Enable or disable direct I/O for the backing file. The default is *off*. Specifying either *--direct-io* or *--direct-io=on* will enable it. But, *--direct-io=off* can be provided to explicitly turn it off.
 
-*-v*, *--verbose*::
-Verbose mode.
-
 *-l*, *--list*::
 If a loop device or the *-a* option is specified, print the default columns for either the specified loop device or all loop devices; the default is to print info about all devices. See also *--output*, *--noheadings*, *--raw*, and *--json*.
 
index 2a3257473d275ea259c1f54218e9e4dd7ec259b4..7da0ebbd00aa86866399a60c8cc2f27c2aabf926 100644 (file)
@@ -501,7 +501,6 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --direct-io[=<on|off>]    open backing file with O_DIRECT\n"), out);
        fputs(_("     --loop-ref <string>       loop device reference\n"), out);
        fputs(_("     --show                    print device name after setup (with -f)\n"), out);
-       fputs(_(" -v, --verbose                 verbose mode\n"), out);
 
        /* output options */
        fputs(USAGE_SEPARATOR, out);
@@ -730,7 +729,6 @@ int main(int argc, char **argv)
                { "raw",          no_argument,       NULL, OPT_RAW       },
                { "loop-ref",     required_argument, NULL, OPT_REF,      },
                { "show",         no_argument,       NULL, OPT_SHOW      },
-               { "verbose",      no_argument,       NULL, 'v'           },
                { "version",      no_argument,       NULL, 'V'           },
                { "remove",       no_argument,       NULL, OPT_REMOVE    },
                { NULL, 0, NULL, 0 }
@@ -829,8 +827,6 @@ int main(int argc, char **argv)
                        if (use_dio)
                                lo_flags |= LO_FLAGS_DIRECT_IO;
                        break;
-               case 'v':
-                       break;
                case OPT_SIZELIMIT:                     /* --sizelimit */
                        sizelimit = strtosize_or_err(optarg, _("failed to parse size"));
                        flags |= LOOPDEV_FL_SIZELIMIT;