Skip to content

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

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

libcephfs / pybind: use uid_t and gid_t instead of int#62934
vshankar merged 1 commit intoceph:mainfrom
cecilialau6776:main

Conversation

@cecilialau6776
Copy link
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

allows for setting uid/gid over 2^31-1 through libcephfs
Fixes: https://tracker.ceph.com/issues/71015

Signed-off-by: Cecilia Lau <cecilialau6776@gmail.com>
@ceph-jenkins
Copy link
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
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
Contributor

jenkins test api

@vshankar
Copy link
Contributor

vshankar commented May 8, 2025

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

@dparmar18
Copy link
Contributor

jenkins test api

@vshankar
Copy link
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
Contributor

jenkins test api

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar
Copy link
Contributor

jenkins retest this please

@vshankar
Copy link
Contributor

jenkins test api

@vshankar vshankar merged commit 53ef9b1 into ceph:main May 21, 2025
13 checks passed
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 unless the ABI change is made visible to the consumers
of the API. Following the Semantic Versioning guidelines[2] we reset
minor and patch (extra) versions to 0.

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

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

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
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 <anoopcs@cryptolab.net>
aainscow pushed a commit to aainscow/ceph that referenced this pull request Jun 10, 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 <anoopcs@cryptolab.net>
samarahu pushed a commit to samarahu/ceph that referenced this pull request Jun 25, 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 <anoopcs@cryptolab.net>
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