From: Harald Hoyer Date: Fri, 24 Sep 2010 10:06:02 +0000 (+0200) Subject: readahead-collect: check for negative return codes of fs_on_ssd() X-Git-Tag: v11~80 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efe5e8f7e114b0ff12c6341617630e1204eca229;p=systemd readahead-collect: check for negative return codes of fs_on_ssd() --- diff --git a/src/readahead-collect.c b/src/readahead-collect.c index aa136ce5..5c9968a0 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;