Commit efe5e8f7 authored by Harald Hoyer's avatar Harald Hoyer Committed by Lennart Poettering

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

parent 6624768c
...@@ -419,7 +419,7 @@ done: ...@@ -419,7 +419,7 @@ done:
log_debug("Writing Pack File..."); 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)); log_debug("On SSD: %s", yes_no(on_ssd));
on_btrfs = statfs(root, &sfs) >= 0 && sfs.f_type == BTRFS_SUPER_MAGIC; on_btrfs = statfs(root, &sfs) >= 0 && sfs.f_type == BTRFS_SUPER_MAGIC;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment