From: Lennart Poettering Date: Tue, 28 Sep 2010 02:03:22 +0000 (+0200) Subject: readahead: fix SSD check X-Git-Tag: v11~48 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55888fa400965fe6e458e78a844da8c85735311b;p=systemd readahead: fix SSD check --- diff --git a/src/readahead-collect.c b/src/readahead-collect.c index c8b2cdcc..0838dd39 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -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;