summaryrefslogtreecommitdiff
path: root/src/readahead-replay.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-13 15:46:05 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-13 15:46:05 +0100
commit46a08e381589c50394d71e428c09857dfeaa3761 (patch)
treec807c925718d0e164de9d22c6af09f1c5039fb1c /src/readahead-replay.c
parenta49728dc8c64fe5a2a0e3327274a01adcf18c330 (diff)
readahead: disable readahead in virtual machines
Diffstat (limited to 'src/readahead-replay.c')
-rw-r--r--src/readahead-replay.c5
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;