*
* - detect ssd on btrfs/lvm...
* - read ahead directories
- * - sd_readahead_cancel
* - gzip?
* - remount rw?
* - handle files where nothing is in mincore
static int collect(const char *root) {
enum {
- FD_FANOTIFY, /* Get the actualy fs events */
+ FD_FANOTIFY, /* Get the actual fs events */
FD_SIGNAL,
FD_INOTIFY, /* We get notifications to quit early via this fd */
_FD_MAX
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;