dm: Add bd_dm_get_thin_pool_stats for generic thin pools - #1209
dm: Add bd_dm_get_thin_pool_stats for generic thin pools#1209vojtechtrefny wants to merge 1 commit into
Conversation
Adds a way to query physical space usage of a device mapper thin pool directly via libdevmapper, without requiring the pool to be managed by LVM. The new BDDMThinPoolStats struct reports used/total data and metadata block counts together with the pool status flags. Resolves: storaged-project#444 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe dm plugin adds a boxed ChangesThin-pool statistics
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: 🟡 Moderate · up to The PR adds thin-pool statistics support, but the standalone DM header currently advertises a type helper that the standalone plugin does not provide, creating a bounded integration risk for consumers and potentially causing link failures. This should be corrected before merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The pull request satisfies issue Full details: Docstring CoverageExplanation Docstring coverage is 72.73% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 3 files. (2 skipped: 2 unsupported.)
✨ 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 |
Adds a way to query physical space usage of a device mapper thin pool directly via libdevmapper, without requiring the pool to be managed by LVM. The new BDDMThinPoolStats struct reports used/total data and metadata block counts together with the pool status flags.
Resolves: #444
Summary by CodeRabbit
New Features
Documentation
Tests