]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: expose ceph.quota.max_bytes xattr within snapshots 36404/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:22:15 +0000 (07:22 -0400)
commit0aa0f43feba7706f458076154ad6c64497f69d49
treed61745cf52d5c6dc78cf031964e3b66f3332ab64
parent408b1bed6f2fbf18456fa35edf565361a6cfde32
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