Conversation
|
Warning Review limit reached
More reviews will be available in 35 minutes and 38 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo independent fixes: ChangesJMB39x ATA pass-through data_in guard
Device Statistics extra info
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/dev_jmb39x_raid.cpp`:
- Around line 758-764: The SMART READ LOG self-test fixup is still not fully
direction-safe because the `!is_no_data` check can allow
`jmb_fix_selftest_log_index()` to mutate the caller buffer for mismatched
requests. Update the condition in the `ata_cmd_in::data_in` handling path so the
self-test log index fixup is gated on `data_in` as well, keeping all
response-side writes restricted to inbound data buffers and matching the
existing direction guard in this block.
In `@src/ataprint.cpp`:
- Around line 1809-1810: The per-entry JSON "string" values for the capacity
counters are being formatted with a locale-dependent decimal separator, which
makes them inconsistent with the existing JSON strings. Update the capacity
handling in ataprint.cpp where format_capacity() is used for the 0x018/0x028
cases, and the related path around the other affected lines, so it explicitly
uses the same locale-neutral "." separator already used by
set_json_globals_from_device_statistics() before assigning infostr into
jrefi["string"]. Keep the output format consistent with the host_reads and
host_writes JSON strings.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: b83f8774-6165-46a9-8ccb-f664139ee253
📒 Files selected for processing (2)
lib/dev_jmb39x_raid.cppsrc/ataprint.cpp
Signed-off-by: Christian Franke <christian.franke@t-online.de>
Add string 'N.NN [KMGT]B' for 'Logical Sectors Read/Written' and string 'H:MM:SS.NNN' for 'Date and Time Stamp' to plaintext and JSON outputs. Signed-off-by: Christian Franke <christian.franke@t-online.de>
Summary by CodeRabbit
Bug Fixes
New Features