projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1708f06
)
homework: downgrade chattr failure log message
author
Lennart Poettering
<lennart@poettering.net>
Mon, 17 Aug 2020 20:07:55 +0000
(22:07 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 26 Aug 2020 12:33:29 +0000
(14:33 +0200)
NOCOW is a btrfs-only thing hence don't log louder than necessary if we
don't have it.
(cherry picked from commit
64dc138d1ebbe11eda7872522263a35237916183
)
src/home/homework-luks.c
patch
|
blob
|
history
diff --git
a/src/home/homework-luks.c
b/src/home/homework-luks.c
index de272e1adb9159f570a2670fdc396d6e1bd5ecaf..0d53fa4d145ef553c683c17cea4f10637f9104d2 100644
(file)
--- 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)