From: Karel Zak Date: Mon, 28 Aug 2023 14:58:13 +0000 (+0200) Subject: losetup: make --output-all more usable X-Git-Tag: v2.40-rc1~260^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdc690634bfdf90267932a9d0d91a1c0cc2620f6;p=thirdparty%2Futil-linux.git losetup: make --output-all more usable The other tools (e.g. lsblk) can use --output-all with --list or --json. Let's make it usable also with losetup. Signed-off-by: Karel Zak --- diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 507292bd80..0ca910ae33 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -793,6 +793,7 @@ int main(int argc, char **argv) list = 1; break; case OPT_OUTPUT_ALL: + list = 1; for (ncolumns = 0; ncolumns < ARRAY_SIZE(infos); ncolumns++) columns[ncolumns] = ncolumns; break;