Add a comment to explain that setting quota on a CephFS directory makes
a difference to how much available space on CephFS is reported when that
directory serves as the root of the CephFS mount.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
// enabled
ceph_assert(cct->_conf.get_val<bool>("client_quota") == false || quota_root != nullptr);
+ /* If bytes quota is set on a directory and conf option "client quota df"
+ * is also set, available space = quota limit - used space. Else,
+ * available space = total space - used space. */
if (quota_root && cct->_conf->client_quota_df && quota_root->quota.max_bytes) {
// Skip the getattr if any sessions are stale, as we don't want to