Actions
Bug #71015
closed
CL
chown methods have int uid/gid parameters instead of uid_t and gid_t parameters
Bug #71015:
chown methods have int uid/gid parameters instead of uid_t and gid_t parameters
Due date:
% Done:
0%
Source:
Community (dev)
Backport:
reef,squid,tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs.pyx, libcephfs
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-469-g53ef9b11ec
Released In:
v21.2.0~2933
Upkeep Timestamp:
2026-10-24T01:55:42+00:00
Description
In libcephfs, the ceph_chown, ceph_fchown, and ceph_lchown methods accept int uid and int gid, where I'd expect they should accept uid_t uid and gid_t gid.
Additonally, the python bindings in cephfs.pyx for chown and lchown expect int instead of uid_t or gid_t.
This means that to chown a uid or gid greater than or equal to 2^31, you must input the 2's complement of that number. For example, chowning with a uid=0 and gid=4200000464 fails to convert the gid to an int, but chowning with a uid=0 and gid=-94966832 results in correct gid of 4200000464.
CL Updated by Cecilia Lau over 1 year ago
- Pull request ID set to 62934
VS Updated by Venky Shankar over 1 year ago
- Category set to Correctness/Safety
- Status changed from New to Fix Under Review
- Target version set to v20.0.0
- Source set to Community (dev)
- Backport set to reef,squid
VS Updated by Venky Shankar over 1 year ago
- Status changed from Fix Under Review to Pending Backport
- Target version changed from v20.0.0 to v21.0.0
- Backport changed from reef,squid to reef,squid,tentacle
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #71398: reef: chown methods have int uid/gid parameters instead of uid_t and gid_t parameters added
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #71399: squid: chown methods have int uid/gid parameters instead of uid_t and gid_t parameters added
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #71400: tentacle: chown methods have int uid/gid parameters instead of uid_t and gid_t parameters added
UB Updated by Upkeep Bot over 1 year ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot over 1 year ago
- Status changed from Pending Backport to Resolved
- Merge Commit set to 53ef9b11ec2c03371725322640bfeb7ac331d914
- Fixed In set to v20.3.0-469-g53ef9b11ec2
- Upkeep Timestamp set to 2025-07-08T14:46:33+00:00
UB Updated by Upkeep Bot over 1 year ago
- Fixed In changed from v20.3.0-469-g53ef9b11ec2 to v20.3.0-469-g53ef9b11ec
- Upkeep Timestamp changed from 2025-07-08T14:46:33+00:00 to 2025-07-14T16:45:57+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-07-14T16:45:57+00:00 to 2026-08-28T01:18:16+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~2933
- Upkeep Timestamp changed from 2026-08-28T01:18:16+00:00 to 2026-10-24T01:55:42+00:00
Actions