]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix the cross-quota rename boundary check conditions 14667/head
authorGreg Farnum <gfarnum@redhat.com>
Wed, 14 Dec 2016 20:09:44 +0000 (12:09 -0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 20 Apr 2017 10:43:54 +0000 (12:43 +0200)
commit82ea0971b3cb07c32ec837cb85de63d4068a70d7
treeeb902892fe7aa0cf1a0862c112674ebd9e195baa
parent118ccad0ba763b98c9ee3de225a947be5372dc0d
client: fix the cross-quota rename boundary check conditions

We were previously rejecting a rename if either of the involved directories
was a quota root, even if the other directory was part of the same quota
"tree". What we really want to do is identify the correct quota root
(whether local or ancestral) for each directory and compare them. So
now we do.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 8e8892aa46accb519faa4bb9fecf66618f1b11b2)

Conflicts:
        src/client/Client.cc (do not pass perm to get_quota_root() because
        jewel does not have 3caa4d233633fb7a67747f2c79c4a0ab89112294)
src/client/Client.cc