On Wed, Jan 31, 2018 at 03:00:51PM +0800, Yan, Zheng wrote: > > + if (fsc->mount_options->flags & CEPH_MOUNT_OPT_NOQUOTADF || > > if ((fsc->mount_options->flags & CEPH_MOUNT_OPT_NOQUOTADF) || Ok, fair enough. > > + !ceph_quota_update_statfs(fsc, buf)) { > > + buf->f_blocks = le64_to_cpu(st.kb) >> (CEPH_BLOCK_SHIFT-10); > > + buf->f_bfree = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); > > + buf->f_bavail = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); > > + } > > > > buf->f_files = le64_to_cpu(st.num_objects); > > buf->f_ffree = -1; > > @@ -151,6 +160,7 @@ enum { > > Opt_acl, > > #endif > > Opt_noacl, > > + Opt_noquotadf, > > please also add quotadf option Hmm.. ok. Since the default behaviour (with this patch) is to show quota stats when running 'df' I assumed this wouldn't be required. But yeah, I guess I can add an option that explicitly does a fsopt->flags &= ~CEPH_MOUNT_OPT_NOQUOTADF; I'll send out a v2. Cheers, -- Luís -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html