Skip to content

squid: client: fix d_reclen for readdir - #60834

Merged
batrick merged 1 commit into
ceph:squidfrom
vshankar:wip-68247-squid
Oct 26, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
vshankar:wip-68247-squid

Conversation

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar vshankar added this to the squid milestone Nov 26, 2024
@vshankar vshankar added the cephfs Ceph File System label Nov 26, 2024
@github-actions github-actions Bot added the stale label Jan 25, 2025
@kotreshhr

Copy link
Copy Markdown
Contributor

@vshankar please rebase this

@joscollin

Copy link
Copy Markdown
Member

@vshankar Please resolve conflicts

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please rebase

@batrick
batrick marked this pull request as draft March 18, 2026 14:27
@vshankar
vshankar marked this pull request as ready for review April 14, 2026 17:48
@vshankar

Copy link
Copy Markdown
Contributor Author

please rebase

done.

@joscollin

Copy link
Copy Markdown
Member

jenkins test make check

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
Based on the man page of readdir(3), the d_reclen field should contain
the total size of the record, which varies depending on the length of
the returned name. However, the previous implementation was returning a
hardcoded '1' in all cases.

This patch computes the right size of the record and returns it.

Fixes: https://tracker.ceph.com/issues/65389
Signed-off-by: Xavi Hernandez <[email protected]>
(cherry picked from commit 5ac0165)
@batrick batrick modified the milestones: squid, v19.2.7 Aug 21, 2026
@ceph ceph deleted a comment from github-actions Bot Aug 21, 2026
@ceph ceph deleted a comment from github-actions Bot Aug 21, 2026
@batrick batrick added releng-audit-queue Release engineering: queued for backport verification audit. and removed stale labels Aug 21, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. labels Aug 21, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #60834 SOURCE PR SOURCE STATUS
073f932 client: fix d_reclen for readdir PR #56776 5ac0165 client: fix d_reclen for readdir

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 073f932 (cherry-pick of 5ac0165)

Affected File(s)

Range Diff

Click to expand
--- Original (5ac01659)
+++ Backport (073f9323)
@@ -9,3 +9,4 @@
 
 Fixes: https://tracker.ceph.com/issues/65389
 Signed-off-by: Xavi Hernandez <[email protected]>
+(cherry picked from commit 5ac01659cf8f33457c78546731d694d1e99fcc91)

================================================================================
RANGE DIFF
================================================================================

1:  5ac01659cf8 ! 1:  073f932304f client: fix d_reclen for readdir
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/65389
         Signed-off-by: Xavi Hernandez <[email protected]>
    +    (cherry picked from commit 5ac01659cf8f33457c78546731d694d1e99fcc91)
     
      ## src/client/Client.cc ##
    -@@
    - 
    - 
    - // unix-ey fs stuff
    -+#include <algorithm>
    - #include <unistd.h>
    - #include <sys/types.h>
    - #include <time.h>
     @@ src/client/Client.cc: void Client::seekdir(dir_result_t *dirp, loff_t offset)
      //};
      void Client::fill_dirent(struct dirent *de, const char *name, int type, uint64_t ino, loff_t next_off)

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 21, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick batrick modified the milestones: v19.2.7, squid Aug 26, 2026
@yuriw

yuriw commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri7-testing-20261007.155121-squid.

@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar

Copy link
Copy Markdown
Contributor Author

Reviewed-by: Venky Shankar [email protected]

@batrick batrick modified the milestones: squid, v19.2.8 Oct 26, 2026
@batrick
batrick merged commit 88dd015 into ceph:squid Oct 26, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants