ceph: new mount option to disable usage of copy-from op
authorLuis Henriques <lhenriques@suse.com>
Mon, 15 Oct 2018 15:46:00 +0000 (16:46 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 22 Oct 2018 08:28:24 +0000 (10:28 +0200)
commitea4cdc548e5e74a529cdd1aea885d74b4aa8f1b3
tree91479813e43c1b0a21322a29a1b1d190cf8bc98b
parent503f82a9932d311c12430779627f7a130bbe462a
ceph: new mount option to disable usage of copy-from op

Add a new mount option 'nocopyfrom' that will prevent the usage of the
RADOS 'copy-from' operation in cephfs.  This could be useful, for example,
for an administrator to temporarily mitigate any possible bugs in the
'copy-from' implementation.

Currently, only copy_file_range uses this RADOS operation.  Setting this
mount option will result in this syscall reverting to the default VFS
implementation, i.e. to perform the copies locally instead of doing remote
object copies.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Documentation/filesystems/ceph.txt
fs/ceph/file.c
fs/ceph/super.c
fs/ceph/super.h