]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Revert "client: optimize rename operation under different quota root" 38112/head
authorLuis Henriques <lhenriques@suse.de>
Mon, 16 Nov 2020 10:56:00 +0000 (10:56 +0000)
committerLuis Henriques <lhenriques@suse.de>
Mon, 16 Nov 2020 17:46:20 +0000 (17:46 +0000)
commitfbb1648d31f5076a57aba95aef91fb26ebc2d100
tree2c9604ddd250c5089cc7145777ff5b887faf8422
parentc10a7240b657553c366fe62aca92e93d35b166e9
Revert "client: optimize rename operation under different quota root"

This reverts commit b8954e5734b3c53f90c47fbdbbbdb8a23747ef07.

The possibility of doing a cross quota realms rename in the kernel client
has been reverted because there was a corner case where it wasn't being
handled correctly:

  mkdir files limit
  truncate files/file -s 10G
  setfattr limit -n ceph.quota.max_bytes -v 1000000
  mv files limit/

The above would succeed because the kernel client won't immediately notify
the MDSs with the new file size when doing a truncate(2), and thus the
quota realms stats won't be updated.

Although the fuse client doesn't have this issue, multi-client scenarios
may be impacted.

URL: https://tracker.ceph.com/issues/48203
Signed-off-by: Luis Henriques <lhenriques@suse.de>
src/client/Client.cc