Blob Blame History Raw
From 266b214a3cae3f6e43bc176614fdb4f5fd8332ea Mon Sep 17 00:00:00 2001
From: Alison Chaiken <alison_chaiken@mentor.com>
Date: Fri, 16 May 2014 09:25:53 +0200
Subject: [PATCH] man: readahead: fix cmdline switch inconsistency between
 readahead.c and docs

Source code has "files-max" and XML has --max-files.

(cherry picked from commit 332bc31992acffc6f32e194c0122e01607bd0e27)
(cherry picked from commit 78db70d9c7da6ad48291047bad1ab2f4e80795e7)

Conflicts:
	man/systemd-readahead-replay.service.xml
	src/readahead/readahead.c
---
 man/systemd-readahead-replay.service.xml | 2 +-
 src/readahead/readahead.c                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/systemd-readahead-replay.service.xml b/man/systemd-readahead-replay.service.xml
index 806d460..8a1f47a 100644
--- a/man/systemd-readahead-replay.service.xml
+++ b/man/systemd-readahead-replay.service.xml
@@ -124,7 +124,7 @@
                         </varlistentry>
 
                         <varlistentry>
-                                <term><option>--max-files=</option></term>
+                                <term><option>--files-max=</option></term>
 
                                 <listitem><para>Maximum number of
                                 files to read ahead. Only valid
diff --git a/src/readahead/readahead.c b/src/readahead/readahead.c
index 29255c9..78bf837 100644
--- a/src/readahead/readahead.c
+++ b/src/readahead/readahead.c
@@ -40,7 +40,7 @@ static int help(void) {
         printf("%s [OPTIONS...] collect [DIRECTORY]\n\n"
                "Collect read-ahead data on early boot.\n\n"
                "  -h --help                 Show this help\n"
-               "     --max-files=INT        Maximum number of files to read ahead\n"
+               "     --files-max=INT        Maximum number of files to read ahead\n"
                "     --file-size-max=BYTES  Maximum size of files to read ahead\n"
                "     --timeout=USEC         Maximum time to spend collecting data\n\n\n",
                program_invocation_short_name);