]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ceph: quota: don't allow cross-quota renames
authorLuis Henriques <lhenriques@suse.com>
Fri, 5 Jan 2018 10:47:20 +0000 (10:47 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 2 Jul 2019 16:30:46 +0000 (18:30 +0200)
commit68a16a2344c4e7d27c04f5857a91c89ef6b30b50
treed7afc41a64ca7d4e255e2ed426951c6e8cbc427e
parent6aa007eef3c16f0e228cb24c7cd577a1be761917
ceph: quota: don't allow cross-quota renames

BugLink: https://bugs.launchpad.net/bugs/1834235
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>
(cherry picked from commit cafe21a4fb3075fb2980caba8fdb533a1bdb52b0)
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/ceph/dir.c
fs/ceph/quota.c
fs/ceph/super.h