diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-14 16:30:46 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-21 20:53:09 +0100 |
commit | 7c2f5495e27283c757a5eb544af7654c8f60e50d (patch) | |
tree | fec5aac5976b64120c3b27600089d0247328cc40 /src/shared/discover-image.c | |
parent | f3e03bd04e21c00cd251bf69a346d0ae505b6494 (diff) | |
download | systemd-7c2f5495e27283c757a5eb544af7654c8f60e50d.tar.gz |
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/shared/discover-image.c')
-rw-r--r-- | src/shared/discover-image.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c index 17a3ac679a..1f5b11f5f4 100644 --- a/src/shared/discover-image.c +++ b/src/shared/discover-image.c @@ -850,7 +850,7 @@ static int clone_auxiliary_file(const char *path, const char *new_name, const ch if (r < 0) return r; - return copy_file_atomic(path, rs, 0664, 0, 0, COPY_REFLINK); + return copy_file_atomic(path, rs, 0664, COPY_REFLINK); } int image_clone(Image *i, const char *new_name, bool read_only) { @@ -911,7 +911,8 @@ int image_clone(Image *i, const char *new_name, bool read_only) { case IMAGE_RAW: new_path = strjoina("/var/lib/machines/", new_name, ".raw"); - r = copy_file_atomic(i->path, new_path, read_only ? 0444 : 0644, FS_NOCOW_FL, FS_NOCOW_FL, COPY_REFLINK|COPY_CRTIME); + r = copy_file_atomic_full(i->path, new_path, read_only ? 0444 : 0644, FS_NOCOW_FL, FS_NOCOW_FL, + COPY_REFLINK|COPY_CRTIME, NULL, NULL); break; case IMAGE_BLOCK: |