diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2012-06-05 13:32:20 -0700 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-06-05 22:45:37 +0200 |
commit | cae544bcdb073134bcaa2031aeb1f1705030046e (patch) | |
tree | 933618514c3505b731a84eeb3ffa41a55ac1673f /src/readahead/readahead-replay.c | |
parent | 3cbd5f6be191a4e71fc85d8b893e96d6d65bf792 (diff) |
readahead: Add tool to analyze the contents of the pack file. v3.
This patch adds code to compile 'systemd-readahead-analyze' and install
it into $bindir.
Use this program to parse the contents of the readahead pack file, or
an arbitrary pack file and display which files are listed in it, and
how much of the files are requested to be readahead.
This code is not new - it's partially taken from sreadahead (formerly
maintained by Arjan van der Ven and me, and was originally written
by me), and adapted with the right bits to parse the systemd
readahead pack files, which are slightly different in format.
v2 adds a common READAHEAD_PACK_FILE_VERSION used in all the code
to provide a quick way to assure all these programs are always
synchronized. v3 fixes the integer math.
Diffstat (limited to 'src/readahead/readahead-replay.c')
-rw-r--r-- | src/readahead/readahead-replay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readahead/readahead-replay.c b/src/readahead/readahead-replay.c index 344dcd4041..fc2c33fcc1 100644 --- a/src/readahead/readahead-replay.c +++ b/src/readahead/readahead-replay.c @@ -183,7 +183,7 @@ static int replay(const char *root) { char_array_0(line); - if (!streq(line, CANONICAL_HOST ";VERSION=2\n")) { + if (!streq(line, CANONICAL_HOST READAHEAD_PACK_FILE_VERSION)) { log_debug("Pack file host or version type mismatch."); goto finish; } |