Skip to content

Conversation

@labkode
Copy link
Member

@labkode labkode commented Jan 23, 2026

  • Calls GetQuota on the passed path vs the root mountpoint.
  • Remove unused function.

@update-docs
Copy link

update-docs bot commented Jan 23, 2026

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Copy link
Member

@glpatcern glpatcern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Hugo, just reporting here the comment in the chat

Comment on lines +1010 to +1012
maxQuotaData, err := xattr.Get(fullPath, "ceph.quota.max_bytes")
if err != nil {
log.Debug().Msg("cephmount: user.quota.max_bytes xattr not set, using default")
log.Debug().Msg("cephmount: ceph.quota.max_bytes xattr not set, using default")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So here we should traverse the tree to the top, looking for quota attributes and return the lowest value, defaulting to the whole mount only if none is found, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And even if we go for a basic approach with no hierarchy of quotas (which I think it's fine), how do we know which node of the path holds the attribute? Or is this function only called at the root of the "Space"? cc @jessegeens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants