]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: expose ceph.quota.max_bytes xattr within snapshots 36403/head
authorShyamsundar Ranganathan <srangana@redhat.com>
Wed, 22 Jul 2020 19:21:50 +0000 (15:21 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Sat, 1 Aug 2020 11:20:41 +0000 (07:20 -0400)
commit0fdb7777083b5dfdc35ee4658df90fc0757daa9d
tree05d63eedd1d8d41d3ebce4a925fb9fd66baa111f
parent14ef12ec8c02d25901126ad7b6c2ecd4062368d6
client: expose ceph.quota.max_bytes xattr within snapshots

For directories within snapshots, expose the ceph.quota.max_bytes
extended attribute information. This enables fetching quota
information when the snapshot was taken and is particularly useful
when cloning subvolume snapshots, to enforce the quota on the
clone subvolume as well.

Fixes: https://tracker.ceph.com/issues/46278
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
(cherry picked from commit 35a033f576a7bcbe89bc96c05eefc6d47ede8fc5)
src/client/Client.cc
src/test/libcephfs/test.cc