Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-109781

[RHEL10] libblockdev could not detects suspended status

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • libblockdev
    • None
    • No
    • None
    • rhel-storage-management
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Did the libblockdev support to get luks status after it suspended ?

       

      from cryptsetup cmd get the suspended in mode field

       Running: 'cryptsetup -v status suspend_io_test'...
      /dev/mapper/suspend_io_test is active.
        type:    LUKS2
        cipher:  aes-xts-plain64
        keysize: 512 [bits]
        key location: dm-crypt
        device:  /dev/mapper/npo2linear
        sector size:  4096 [bytes]
        offset:  32768 [512-byte units] (134217728 [bytes])
        size:    12550144 [512-byte units] (51405389824 [bytes])
        mode:    read/write (suspended)
      Command successful.
       
       Running: 'dmsetup info suspend_io_test'...
      Name:              suspend_io_test
      State:             SUSPENDED
      Read Ahead:        256
      Tables present:    LIVE
      Open count:        0
      Event number:      0
      Major, minor:      253, 4
      Number of targets: 1
      UUID: CRYPT-LUKS2-7f380f4297314e46b82a6996e155636b-suspend_io_test
       
                      # 1. libblockdev API
                      try:
                          api_status = luks_helper.bd.crypto_luks_status(mapped_device)
                          print(f"   - libblockdev API: {api_status}")
                      except Exception as e:
                          print(f"   - libblockdev API: error {e}") 

      libblockdev API: active

       

      libblockdev-3.2.0-5.el10.x86_64

      6.12.0-119.el10.x86_64

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Vojtěch Trefný Vojtěch Trefný
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: