summaryrefslogtreecommitdiffstats
path: root/src/journal
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-14 16:30:46 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-21 20:53:09 +0100
commit7c2f5495e27283c757a5eb544af7654c8f60e50d (patch)
treefec5aac5976b64120c3b27600089d0247328cc40 /src/journal
parentMerge pull request #26828 from DaanDeMeyer/tmpfile-at (diff)
downloadsystemd-7c2f5495e27283c757a5eb544af7654c8f60e50d.tar.xz
systemd-7c2f5495e27283c757a5eb544af7654c8f60e50d.zip
copy: Move chattr arguments to full function signatures
These are almost never used, so let's move them to the _full() functions signatures.
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/managed-journal-file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/journal/managed-journal-file.c b/src/journal/managed-journal-file.c
index 538d999de0..37d41f0678 100644
--- a/src/journal/managed-journal-file.c
+++ b/src/journal/managed-journal-file.c
@@ -222,10 +222,11 @@ static void managed_journal_file_set_offline_internal(ManagedJournalFile *f) {
log_debug_errno(r, "Failed to re-enable copy-on-write for %s: %m, rewriting file", f->file->path);
- r = copy_file_atomic(FORMAT_PROC_FD_PATH(f->file->fd), f->file->path, f->file->mode,
- 0,
- FS_NOCOW_FL,
- COPY_REPLACE | COPY_FSYNC | COPY_HOLES | COPY_ALL_XATTRS);
+ r = copy_file_atomic_full(FORMAT_PROC_FD_PATH(f->file->fd), f->file->path, f->file->mode,
+ 0,
+ FS_NOCOW_FL,
+ COPY_REPLACE | COPY_FSYNC | COPY_HOLES | COPY_ALL_XATTRS,
+ NULL, NULL);
if (r < 0) {
log_debug_errno(r, "Failed to rewrite %s: %m", f->file->path);
continue;