ceph: quota: don't allow cross-quota renames
authorLuis Henriques <lhenriques@suse.com>
Fri, 5 Jan 2018 10:47:20 +0000 (10:47 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 09:17:52 +0000 (11:17 +0200)
commitcafe21a4fb3075fb2980caba8fdb533a1bdb52b0
treeccdcecba6b1fb66f93c95032fb2be668e10aa7fe
parentb7a2921765cf796280baf653a52b22b52e0ba266
ceph: quota: don't allow cross-quota renames

This patch changes ceph_rename so that -EXDEV is returned if an attempt is
made to mv a file between two different dir trees with different quotas
setup.

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