]> git.baikalelectronics.ru Git - kernel.git/commit
hostfs: support rename flags
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 23 Jul 2014 13:15:35 +0000 (15:15 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:09 +0000 (14:40 -0400)
commit773f0e80eefc245504ffc87123cd4b730c0dce90
tree73482f4b4fc8495d3695e6bbf0abf1db59cd6ae7
parent3879962f9866d53f5cea92df36b80f68eda9c3d7
hostfs: support rename flags

Support RENAME_NOREPLACE and RENAME_EXCHANGE flags on hostfs if the
underlying filesystem supports it.

Since renameat2(2) is not yet in any libc, use syscall(2) to invoke the
renameat2 syscall.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hostfs/hostfs.h
fs/hostfs/hostfs_kern.c
fs/hostfs/hostfs_user.c