]> err.no Git - systemd/commitdiff
readahead: fix SSD check
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Sep 2010 02:03:22 +0000 (04:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Sep 2010 18:53:08 +0000 (20:53 +0200)
src/readahead-collect.c

index c8b2cdcc52eca4a38ff8216d3cfebe5d99b11e69..0838dd392919887e5aee6c40ebf21b6f69bc560c 100644 (file)
@@ -422,7 +422,7 @@ done:
 
         log_debug("Writing Pack File...");
 
-        on_ssd = fs_on_ssd(root) == 0;
+        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;