From: Lennart Poettering Date: Mon, 17 Aug 2020 20:07:55 +0000 (+0200) Subject: homework: downgrade chattr failure log message X-Git-Tag: v247-rc1~410^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F16762%2Fhead;p=thirdparty%2Fsystemd.git homework: downgrade chattr failure log message NOCOW is a btrfs-only thing hence don't log louder than necessary if we don't have it. --- diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c index d97fcbe07a4..1fcf17806e7 100644 --- a/src/home/homework-luks.c +++ b/src/home/homework-luks.c @@ -2017,7 +2017,8 @@ int home_create_luks( r = chattr_fd(image_fd, FS_NOCOW_FL, FS_NOCOW_FL, NULL); if (r < 0) - log_warning_errno(r, "Failed to set file attributes on %s, ignoring: %m", temporary_image_path); + log_full_errno(ERRNO_IS_NOT_SUPPORTED(r) ? LOG_DEBUG : LOG_WARNING, r, + "Failed to set file attributes on %s, ignoring: %m", temporary_image_path); r = home_truncate(h, image_fd, temporary_image_path, host_size); if (r < 0)