crypto: Show better error when crypt_activate returns ETXTBSY#1155
Conversation
This error code is used when the LUKS2 device requires some features not supported by the used version of cryptsetup, e.g. when trying to open a device created with a newer version. The "Text file busy" error message return by strerror is not very usefull in this case. Fixes: storaged-project#1148
WalkthroughAdded error handling in the crypto device activation function to detect and report the ETXTBSY return value with a descriptive message about unsupported LUKS2 requirements, replacing the generic "Text file busy" error from the system. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (42)
🔇 Additional comments (1)
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 |
1d15c5a
into
storaged-project:master
This error code is used when the LUKS2 device requires some features not supported by the used version of cryptsetup, e.g. when trying to open a device created with a newer version. The "Text file busy" error message return by strerror is not very usefull in this case.
Fixes: #1148
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.