diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-13 15:46:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-13 15:46:05 +0100 |
commit | 46a08e381589c50394d71e428c09857dfeaa3761 (patch) | |
tree | c807c925718d0e164de9d22c6af09f1c5039fb1c /src/readahead-replay.c | |
parent | a49728dc8c64fe5a2a0e3327274a01adcf18c330 (diff) |
readahead: disable readahead in virtual machines
Diffstat (limited to 'src/readahead-replay.c')
-rw-r--r-- | src/readahead-replay.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/readahead-replay.c b/src/readahead-replay.c index 87f2e598b4..e9c573a593 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -346,6 +346,11 @@ int main(int argc, char*argv[]) { return 0; } + if (running_in_vm()) { + log_info("Disabling readahead replay due to execution in virtual machine."); + return 0; + } + if (!(shared = shared_get())) return 1; |