Skip to content

Revert "client: optimize rename operation under different quota root"#38112

Merged
batrick merged 1 commit intoceph:masterfrom
luis-henrix:quota-failure-fix
Dec 2, 2020
Merged

Revert "client: optimize rename operation under different quota root"#38112
batrick merged 1 commit intoceph:masterfrom
luis-henrix:quota-failure-fix

Conversation

@luis-henrix
Copy link

This reverts commit b8954e5.

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

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

This reverts commit b8954e5.

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>
@github-actions github-actions bot added the cephfs Ceph File System label Nov 16, 2020
@batrick
Copy link
Member

batrick commented Dec 2, 2020

@batrick batrick merged commit ad4f479 into ceph:master Dec 2, 2020
@batrick
Copy link
Member

batrick commented Jan 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants