if (dm_snprintf(sysfs_path, PATH_MAX, "%sdev/block/%" PRIu32
":%" PRIu32 "/holders", _sysfs_dir, major, minor) < 0) {
- log_error("sysfs_path dm_snprintf failed");
+ log_warn("WARNING: sysfs_path dm_snprintf failed.");
return 0;
}
if (stat(sysfs_path, &st)) {
if (errno != ENOENT)
- log_sys_error("stat", sysfs_path);
+ log_sys_debug("stat", sysfs_path);
return 0;
}
int r = 0;
if (dm_snprintf(sysfs_path, PATH_MAX, "%sfs", _sysfs_dir) < 0) {
- log_error("sysfs_path dm_snprintf failed");
+ log_warn("WARNING: sysfs_path dm_snprintf failed.");
return 0;
}
if (!(d = opendir(sysfs_path))) {
if (errno != ENOENT)
- log_sys_error("opendir", sysfs_path);
+ log_sys_debug("opendir", sysfs_path);
return 0;
}
if (dm_snprintf(sysfs_path, PATH_MAX, "%sfs/%s/%s",
_sysfs_dir, dirent->d_name, kernel_dev_name) < 0) {
- log_error("sysfs_path dm_snprintf failed");
+ log_warn("WARNING: sysfs_path dm_snprintf failed.");
break;
}
break;
}
else if (errno != ENOENT) {
- log_sys_error("stat", sysfs_path);
+ log_sys_debug("stat", sysfs_path);
break;
}
}
if (closedir(d))
- log_error("_fs_present_on_device: %s: closedir failed", kernel_dev_name);
+ log_sys_debug("closedir", kernel_dev_name);
return r;
}