Skip to content

fix: patch cptofs to reset errno before readdir - #643

Closed
07joshua03 wants to merge 1 commit into
lkl:masterfrom
07joshua03:fix/cptofs-reset-errno-readdir
Closed

07joshua03 wants to merge 1 commit into
lkl:masterfrom
07joshua03:fix/cptofs-reset-errno-readdir

Conversation

@07joshua03

Copy link
Copy Markdown

cptofs read_dir does not reset errno before calling readdir, so stale errno from earlier syscalls are reported as "error while reading directory ... Invalid argument" at every normal end of directory, as readdir does not change errno if eod.

cptofs read_dir does not reset errno before calling readdir, so stale errno from earlier syscalls are reported as "error while reading directory ...
Invalid argument" at every normal end of directory, as readdir does not
change errno if eod.

Signed-off-by: Joshua Gort <accounts@joshuagort.com>
@github-actions

Copy link
Copy Markdown

Test Results

106 files  ±0  106 suites  ±0   8m 29s ⏱️ +51s
206 tests ±0  195 ✅ ±0  11 💤 ±0  0 ❌ ±0 
790 runs  ±0  734 ✅ ±0  56 💤 ±0  0 ❌ ±0 

Results for commit 318cf93. ± Comparison against base commit 2a4f7d0.

@ddiss ddiss 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.

Makes sense and looks good to me - thanks Joshua!

@ddiss

ddiss commented Sep 22, 2026

Copy link
Copy Markdown

I just saw that checkpatch is complaining about the whitespace damage on line 523 - this should be fixed when merging (or prior).

@tavip tavip 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.

LGTM, just a minor issue with checkpatch.

@ddiss

ddiss commented Sep 23, 2026

Copy link
Copy Markdown

I just saw that checkpatch is complaining about the whitespace damage on line 523 - this should be fixed when merging (or prior).

Merged as 00ff347 , with minor whitespace cleanup and changelog reformatting applied.

@ddiss ddiss closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants