Repository navigation
squid: client: fix d_reclen for readdir - #60834
Conversation
|
@vshankar please rebase this |
|
@vshankar Please resolve conflicts |
5dcf334 to
67bd959
Compare
done. |
|
jenkins test make check |
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)
67bd959 to
073f932
Compare
There was a problem hiding this comment.
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
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)
src/client/Client.cc
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @batrick. |
|
This PR has been added to wip-yuri7-testing-20261007.155121-squid. |
|
Reviewed-by: Venky Shankar [email protected] |
backport tracker: https://tracker.ceph.com/issues/68247
backport of #56776
parent tracker: https://tracker.ceph.com/issues/65389
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh