Project

General

Profile

Actions

Bug #72401

open

pybind/cephfs: errno definitions use Linux numbers and not the host system

Added by Patrick Donnelly 8 months ago. Updated 6 months ago.

Status:
Pending Backport
Priority:
Urgent
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-3435-gf3d5db48a2
Released In:
Upkeep Timestamp:
2025-10-08T03:03:57+00:00

Description

These definitions:

https://github.com/ceph/ceph/blob/a57b5663e914d67b46b1d767e4b8964e60b94c43/src/pybind/cephfs/cephfs.pyx#L65-L105

need to get the host level error code. Two options I see:

  • Use `errno.ENAME` to get the errno number. If this does not exist on some platform, then we have no useful fallback.
  • Wireup ceph_to_hostos_errno in libcephfs so we can use the same routines Ceph internally uses.

Related issues 2 (2 open0 closed)

Copied to CephFS - Backport #73402: tentacle: pybind/cephfs: errno definitions use Linux numbers and not the host systemQA TestingRishabh DaveActions
Copied to CephFS - Backport #73403: squid: pybind/cephfs: errno definitions use Linux numbers and not the host systemQA TestingRishabh DaveActions
Actions #1

Updated by Rishabh Dave 7 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 65135
Actions #2

Updated by Rishabh Dave 6 months ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Upkeep Bot 6 months ago

  • Merge Commit set to f3d5db48a2b42d2832fb396a65c25f65fc36d08f
  • Fixed In set to v20.3.0-3435-gf3d5db48a2
  • Upkeep Timestamp set to 2025-10-08T03:03:57+00:00
Actions #4

Updated by Rishabh Dave 6 months ago

  • Copied to Backport #73402: tentacle: pybind/cephfs: errno definitions use Linux numbers and not the host system added
Actions #5

Updated by Rishabh Dave 6 months ago

  • Copied to Backport #73403: squid: pybind/cephfs: errno definitions use Linux numbers and not the host system added
Actions #6

Updated by Rishabh Dave 6 months ago

  • Tags (freeform) set to backport_processed
Actions

Also available in: Atom PDF