readahead-collect: check for negative return codes of fs_on_ssd()
This commit is contained in:
committed by
Lennart Poettering
parent
6624768c9c
commit
efe5e8f7e1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user