]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: have -f and -e imply no-value -b
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 9 Dec 2021 19:03:55 +0000 (20:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Dec 2021 06:27:09 +0000 (07:27 +0100)
Both of these take multiple seconds, best-case, to get the last few
entries, but do so instantly with -b

src/journal/journalctl.c

index 5ea996c449f02b664c981c8ef62e5990f29d99fc..5232351e3d4da11c656a8c4210c81687c901391c 100644 (file)
@@ -551,10 +551,19 @@ static int parse_argv(int argc, char *argv[]) {
                         if (arg_lines == ARG_LINES_DEFAULT)
                                 arg_lines = 1000;
 
+                        arg_boot = true;
+                        arg_boot_id = SD_ID128_NULL;
+                        arg_boot_offset = 0;
+
                         break;
 
                 case 'f':
                         arg_follow = true;
+
+                        arg_boot = true;
+                        arg_boot_id = SD_ID128_NULL;
+                        arg_boot_offset = 0;
+
                         break;
 
                 case 'o':