Skip to content

Trouble Retrieving Directory Size and Quota Using go-ceph/cephfs #948

Answered by nixpanic
Nullthingxs asked this question in Q&A
Discussion options

You must be logged in to vote

The dir.ReadDirPlus(0, 0) that you do, passes 0 for StatxMask. You will need to pass a mask of values like StatxMode as defined on https://pkg.go.dev/github.com/ceph/go-ceph@v0.25.0/cephfs#pkg-constants.

Alternatively you could use the extended attribute method with https://pkg.go.dev/github.com/ceph/go-ceph@v0.25.0/cephfs#File.GetXattr

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Nullthingxs
Comment options

Answer selected by Nullthingxs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants