From 64dc138d1ebbe11eda7872522263a35237916183 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 17 Aug 2020 22:07:55 +0200 Subject: [PATCH] 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. --- src/home/homework-luks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.47.3