[systemd-devel] [PATCH 4/6] readahead-collect: check for negative return codes of fs_on_ssd()

Lennart Poettering lennart at poettering.net
Sun Sep 26 16:51:30 PDT 2010


1;2591;0cOn Fri, 24.09.10 12:06, harald at redhat.com (harald at redhat.com) wrote:

> From: Harald Hoyer <harald at redhat.com>

Thanks, applied!

> -        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;


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list