Add OPAL2 SUM support

  • New Features
    • Added a --disable-sum option for LUKS2 format with hardware OPAL to disable OPAL2 Single User Mode (SUM) during format.
    • OPAL2 setup now returns and applies the device OPAL requirement version after ranges are configured.
  • Documentation
    • Man page updated with usage notes and applicability for --disable-sum.
  • Tests
    • Test scripts detect SUM compatibility and report when a device is SUM-capable.
  • Chores
    • Introduced a compatibility flag to support disabling hardware SUM.

(summary generated by CodeRabbit )

It now depends on !850 (merged)

The code compiles independently from extended SUM kernel headers, but for manipulating/setting up devices in SUM it requires following kernel patches: https://lore.kernel.org/linux-block/20260130162527.570255-1-okozina@redhat.com/T/#t

Edited by Ondrej Kozina

Merge request reports

Loading
Loading