rename.2: Add kernel versions for RENAME_NOREPLACE support

The RENAME_NOREPLACE flag was added with the initial release of the
renameat2 syscall in Linux 3.15, but support for most filesystems was
only added in later versions, and some may still not support it.

Signed-off-by: Lucas Werkmeister <mail@lucaswerkmeister.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Lucas Werkmeister 2018-09-14 00:37:59 +02:00 committed by Michael Kerrisk
parent 587ff4d5af
commit 94b9d26faa
1 changed files with 15 additions and 0 deletions

View File

@ -209,6 +209,21 @@ already exists.
.B RENAME_NOREPLACE
can't be employed together with
.BR RENAME_EXCHANGE .
.IP
.B RENAME_NOREPLACE
requires support from the underlying filesystem.
Among the filesystems that provide that support are
ext4 (since Linux 3.15),
.\" ext4: commit 0a7c3937a1f23f8cb5fc77ae01661e9968a51d0c
btrfs, shmem and cifs (since Linux 3.17),
.\" btrfs: commit 80ace85c915d0f41016f82917218997b72431258
.\" shmem: commit 3b69ff51d087d265aa4af3a532fc4f20bf33e718
.\" cifs: commit 7c33d5972ce382bcc506d16235f1e9b7d22cbef8
and affs, bfs, exofs, ext2, hfs, hfsplus, jffs2, jfs, logfs, minix, msdos,
nilfs2, omfs, reiserfs, sysvfs, ubifs, udf, ufs, vfat,
hugetlbfs, ramfs, and bpf (since Linux 4.9).
.\" local filesystems: commit f03b8ad8d38634d13e802165cc15917481b47835
.\" libfs: commit e0e0be8a835520e2f7c89f214dfda570922a1b90
.TP
.BR RENAME_WHITEOUT " (since Linux 3.18)"
.\" commit 0d7a855526dd672e114aff2ac22b60fc6f155b08