[systemd-devel] [PATCH 4/6] readahead-collect: check for negative return codes of fs_on_ssd()

harald at redhat.com harald at redhat.com
Fri Sep 24 03:06:02 PDT 2010


From: Harald Hoyer <harald at redhat.com>

---
 src/readahead-collect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/readahead-collect.c b/src/readahead-collect.c
index 5ff3711..7983b31 100644
--- a/src/readahead-collect.c
+++ b/src/readahead-collect.c
@@ -326,7 +326,7 @@ static int collect(const char *root) {
 
         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;
-- 
1.7.3



More information about the systemd-devel mailing list