Skip to content

libcephfs / pybind: use uid_t and gid_t instead of int - #62934

Merged
vshankar merged 1 commit into
ceph:mainfrom
cecilialau6776:main
May 21, 2025
Merged

vshankar merged 1 commit into
ceph:mainfrom
cecilialau6776:main

Conversation

@cecilialau6776

Copy link
Copy Markdown
Contributor

allows for setting uid/gid over 2^31-1 through libcephfs and pybind/libcephfs

Fixes: https://tracker.ceph.com/issues/71015

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions Bot added cephfs Ceph File System pybind labels Apr 23, 2025
@vshankar
vshankar requested a review from a team April 24, 2025 06:17
@dparmar18

Copy link
Copy Markdown
Contributor

The other APIs in libcephfs.h have used uid_t and gid_t so not only this is correcting the API funcs but also aligning with the others.

@dparmar18

Copy link
Copy Markdown
Contributor

jenkins test api

@vshankar

vshankar commented May 8, 2025

Copy link
Copy Markdown
Contributor

@dparmar18

Copy link
Copy Markdown
Contributor

jenkins test api

@vshankar

Copy link
Copy Markdown
Contributor

This PR is under test in https://tracker.ceph.com/issues/71260.

Suite run looks good. This will be merged soon.

@vshankar

Copy link
Copy Markdown
Contributor

jenkins test api

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vshankar

Copy link
Copy Markdown
Contributor

jenkins retest this please

@vshankar

Copy link
Copy Markdown
Contributor

jenkins test api

@vshankar
vshankar merged commit 53ef9b1 into ceph:main May 21, 2025
anoopcs9 added a commit to anoopcs9/ceph that referenced this pull request Jun 4, 2025
We recently had ABI changes[1] with respect to APIs from chown() family
which calls for a change in major version. Native users of the library
may not have to change their code but expected sizes differ when data
type for parameters are changed. However go-ceph, Go bindings for ceph,
couldn't build[2] unless the ABI change is made visible to the consumers
of the API. Following the Semantic Versioning guidelines[3] we reset
minor and patch (extra) versions to 0.

[1] ceph#62934
[2] ceph/go-ceph#1119
[3] https://semver.org/#spec-item-8

Fixes: https://tracker.ceph.com/issues/71519

Signed-off-by: Anoop C S <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System pybind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants