[cephfs] add subvolumegroup info#1243
Conversation
|
Thanks for the contribution. Please update the commit messages to use the same style previous commits in this project use for that package (see also the ceph/ceph docs https://github.com/ceph/ceph/blob/main/SubmittingPatches.rst#commit-title which we share). |
e49fb7a to
55d2145
Compare
|
Hi, Sorry for the commit messages I'm so used that I forgot it after reading the development documentation of the project. I'm not also fully sure about And congrats for the builtin tests that spawn a tiny cluster, this is really awesome. |
Thanks for updating.
Let me try and explain - the ideal is that when a new function or type is added it should be added to a new file. The new file then contains the preview build tag. This goes for new tests as well, create a new file. Go has no restriction on adding "methods" to a type defined in a different file. When I enable the CI workflows there's a good chance it will flag the new apis as not first going through preview. Regardless, even if the CI doesn't detect it we'll want to move the new code to new files properly tagged.
It is nice. I credit the previous maintainers of the project for setting that up. |
55d2145 to
d10446c
Compare
|
Thanks @phlogistonjohn, I've update the PR to reflect your explanations. new API is now moved to I've added the Thanks. |
|
@Mergifyio rebase |
❌ Pull request can't be updated with latest base branch changesDetailsMergify needs the author permission to update the base branch of the pull request. |
|
Hi @lcaflc can you please rebase this PR? Or grant authorizaion for others to do so? The mergify bot is unable to work it's magic. |
Add SubVolumeGroupInfo into the cephfs/admin api. This is mainly usefull for subvolumegroup size and quota informations. Signed-off-by: Laurent Corbes <laurent.corbes@enix.fr>
d10446c to
98b693c
Compare
|
@phlogistonjohn Should be ok now. Thanks. |
| Uid int `json:"uid"` | ||
| Gid int `json:"gid"` | ||
| Mode int `json:"mode"` | ||
| BytesPercent string `json:"bytes_pcent"` | ||
| BytesUsed ByteCount `json:"bytes_used"` | ||
| BytesQuota QuotaSize `json:"-"` | ||
| DataPool string `json:"data_pool"` | ||
| Atime TimeStamp `json:"atime"` | ||
| Mtime TimeStamp `json:"mtime"` | ||
| Ctime TimeStamp `json:"ctime"` | ||
| CreatedAt TimeStamp `json:"created_at"` | ||
| MonAddrs []string `json:"mon_addrs"` |
There was a problem hiding this comment.
We also have casesensitive and normalization fields in addition to the above from tentacle. But I guess those can wait a little more.
There was a problem hiding this comment.
Cool. Yeah, I don't think it's needed to do everything in one PR.
Add SubVolumeGroupInfo into the cephfs/admin api.
This is mainly usefull for subvolumegroup size and quota informations.