[systemd-devel] [PATCH] [PATCH v3] util: add rename_noreplace
lennart at poettering.net
Tue Mar 10 10:25:36 PDT 2015
On Tue, 10.03.15 18:15, Alban Crequy (alban.crequy at gmail.com) wrote:
> From: Alban Crequy <alban at endocode.com>
> renameat2() exists since Linux 3.15 but btrfs support for the flag
> RENAME_NOREPLACE was added later.
> This patch implements a fallback when renameat2() returns EINVAL.
> EINVAL is the error returned when the filesystem does not support one of
> the flags.
Thanks! Applied. (With some minor fixes)
Lennart Poettering, Red Hat
More information about the systemd-devel