X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournal-file.c;h=0e33a0fd873e7562a640d50246bb0c9e9e169603;hb=65eae3b76243d2dfd869f8c43b787575f7b4b994;hp=9c9a5483be550b84cf6095bc0850e40dbe283be5;hpb=950c07d421c04e5aae99973479f4f13131fb45e1;p=elogind.git diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 9c9a5483b..0e33a0fd8 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2609,8 +2609,8 @@ int journal_file_open( * shouldn't be too bad, given that we do our own * checksumming). */ r = chattr_fd(f->fd, true, FS_NOCOW_FL); - if (r < 0) - log_warning_errno(errno, "Failed to set file attributes: %m"); + if (r < 0 && r != -ENOTTY) + log_warning_errno(r, "Failed to set file attributes: %m"); /* Let's attach the creation time to the journal file, * so that the vacuuming code knows the age of this