summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-09-24 12:06:02 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-26 15:52:58 +0200
commitefe5e8f7e114b0ff12c6341617630e1204eca229 (patch)
tree7be544cbe4282263dfeea943e3c5305b00009d2b
parent6624768c9c39ab409edebe07cb06ecd93cc6f3ed (diff)
readahead-collect: check for negative return codes of fs_on_ssd()
-rw-r--r--src/readahead-collect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c
index aa136ce50e..5c9968a06e 100644
--- a/src/readahead-collect.c
+++ b/src/readahead-collect.c
@@ -419,7 +419,7 @@ done:
log_debug("Writing Pack File...");
- on_ssd = fs_on_ssd(root);
+ on_ssd = fs_on_ssd(root) == 0;
log_debug("On SSD: %s", yes_no(on_ssd));
on_btrfs = statfs(root, &sfs) >= 0 && sfs.f_type == BTRFS_SUPER_MAGIC;