generic: check noreplace renameat2 syscall
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 14 Apr 2014 00:37:31 +0000 (10:37 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 00:37:31 +0000 (10:37 +1000)
commit1f98dd05461b65d7ff256d46ffcbebf28a76cc54
tree13456056ae3f4a6f76d7e674486a9dfb92d75682
parentbdf215033dd19e9438536d686ec53c2d39b69eb8
generic: check noreplace renameat2 syscall

Check with RENAME_NOREPLACE flag.  This flag indicates that the
rename must fail if the target of the rename exists.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/024 [new file with mode: 0755]
tests/generic/024.out [new file with mode: 0644]
tests/generic/group