Project

General

Profile

Actions

Bug #65389

open

The ceph_readdir function in libcephfs returns incorrect d_reclen value

Added by Xavi Hernandez almost 2 years ago. Updated 4 months ago.

Status:
Pending Backport
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Development
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, ceph-fuse, libcephfs
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v19.3.0-5186-gcfac7ef803
Released In:
v20.2.0~1930
Upkeep Timestamp:
2025-11-01T00:57:52+00:00

Description

When struct dirent entries are returned by ceph_readdir() function, the field d_reclen is always 1.

Based on the documentation from man pages (from readdir and getdents/64), this field should contain the used size of the dirent structure, which include the size of the fixed fields plus the space used by the name (which may be different than the actual size of a struct dirent ).


Related issues 3 (1 open2 closed)

Copied to CephFS - Backport #68246: quincy: The ceph_readdir function in libcephfs returns incorrect d_reclen valueRejectedXavi HernandezActions
Copied to CephFS - Backport #68247: squid: The ceph_readdir function in libcephfs returns incorrect d_reclen valueQA TestingVenky ShankarActions
Copied to CephFS - Backport #68248: reef: The ceph_readdir function in libcephfs returns incorrect d_reclen valueResolvedMilind ChangireActions
Actions #1

Updated by Venky Shankar almost 2 years ago

  • Target version set to v20.0.0
  • Backport set to quincy,reef,squid
  • Component(FS) ceph-fuse added
Actions #2

Updated by Patrick Donnelly almost 2 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Patrick Donnelly over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
  • Source set to Development
Actions #4

Updated by Patrick Donnelly over 1 year ago

  • Pull request ID set to 56776
Actions #5

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #68246: quincy: The ceph_readdir function in libcephfs returns incorrect d_reclen value added
Actions #6

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #68247: squid: The ceph_readdir function in libcephfs returns incorrect d_reclen value added
Actions #7

Updated by Upkeep Bot over 1 year ago

  • Copied to Backport #68248: reef: The ceph_readdir function in libcephfs returns incorrect d_reclen value added
Actions #8

Updated by Upkeep Bot over 1 year ago

  • Tags (freeform) set to backport_processed
Actions #9

Updated by Upkeep Bot 8 months ago

  • Merge Commit set to cfac7ef803bff86bf0b473c3d69dab196753bdf1
  • Fixed In set to v19.3.0-5186-gcfac7ef803b
  • Upkeep Timestamp set to 2025-07-09T13:46:48+00:00
Actions #10

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v19.3.0-5186-gcfac7ef803b to v19.3.0-5186-gcfac7ef803
  • Upkeep Timestamp changed from 2025-07-09T13:46:48+00:00 to 2025-07-14T17:40:43+00:00
Actions #11

Updated by Upkeep Bot 4 months ago

  • Released In set to v20.2.0~1930
  • Upkeep Timestamp changed from 2025-07-14T17:40:43+00:00 to 2025-11-01T00:57:52+00:00
Actions

Also available in: Atom PDF