Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support st_blksize and st_blocks on JFFS2 #912

Merged
merged 4 commits into from
Oct 22, 2024
Merged

Support st_blksize and st_blocks on JFFS2 #912

merged 4 commits into from
Oct 22, 2024

Conversation

twiggler
Copy link
Contributor

@twiggler twiggler commented Oct 17, 2024

The block size is a function of the "erase size" of the underlying flash device.
Linux stat reports the default block size, which is defined as 4k in libc.

Note that JFFS2 does not support non-residential symlinks (see https://github.com/torvalds/linux/blob/6485cf5ea253d40d507cd71253c9568c5470cd27/fs/jffs2/dir.c#L299)

Closes #819

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.68%. Comparing base (cb69261) to head (1b3935f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #912      +/-   ##
==========================================
+ Coverage   76.65%   76.68%   +0.03%     
==========================================
  Files         316      316              
  Lines       27101    27103       +2     
==========================================
+ Hits        20774    20784      +10     
+ Misses       6327     6319       -8     
Flag Coverage Δ
unittests 76.68% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@twiggler twiggler requested a review from pyrco October 21, 2024 15:25
@twiggler twiggler merged commit 98527ae into main Oct 22, 2024
18 of 20 checks passed
@twiggler twiggler deleted the stat_jffs branch October 22, 2024 08:35
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.

Add st_blocks and st_blksize to stat output for JFFS
3 participants