readahead-collect: check for negative return codes of fs_on_ssd()

This commit is contained in:
Harald Hoyer
2010-09-26 15:52:58 +02:00
committed by Lennart Poettering
parent 6624768c9c
commit efe5e8f7e1
+1 -1
View File
@@ -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;