]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs.pyx: handle when UID/GID passed to chown() is -1
authorRishabh Dave <ridave@redhat.com>
Tue, 12 Aug 2025 16:41:23 +0000 (22:11 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 13 Aug 2025 04:47:54 +0000 (10:17 +0530)
commit325ae1163eb30b64957ced1eae04e2c24428ccfa
tree73540dbe0eb1cc0e22924cbbed6512bc6efe83cc
parentbc264090a20327a16574bf5892b495097a3c7f3d
cephfs.pyx: handle when UID/GID passed to chown() is -1

When chown() in libcephfs call receives -1 as the value of UID/GID, it
is implicitly converted from signed integer to unsigned integeer but
CephFS cython instead of doing that errors out during complilation.
Therefore make this conversion explicitly to allow users to pass -1
(which they do to indicate that UID/GID value shouldn't be changed) and
also for sake of uniformity and consistency between between CephFS
cython and libcephfs interface.

Fixes: https://tracker.ceph.com/issues/72547
Introduced-by: 65328aca31f2f5038cb602148120b9427370ed4f
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/cephfs/cephfs.pyx