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-collect.c | |
parent | a49728dc8c64fe5a2a0e3327274a01adcf18c330 (diff) |
readahead: disable readahead in virtual machines
Diffstat (limited to 'src/readahead-collect.c')
-rw-r--r-- | src/readahead-collect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c index ac46c7b3ea..4ca6d74726 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -649,6 +649,11 @@ int main(int argc, char *argv[]) { return 0; } + if (running_in_vm()) { + log_info("Disabling readahead collector due to execution in virtual machine."); + return 0; + } + if (!(shared = shared_get())) return 1; |