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

era_invalidate cannot parse the --written-since option

    • device-mapper-persistent-data-1.0.9-1.el9
    • None
    • Medium
    • ZStream
    • e7d19e8f3f0041e54b68b19101d009b7c2663e71
    • sst_logical_storage
    • ssg_platform_storage
    • 24
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • Approved Blocker
    • Pass
    • None
    • All
    • None

      Steps to reproduce

      1. Prepare a dummy metadata file: `dd if=/dev/zero of=meta.bin bs=1M count=1`
      2. Run era_invalidate on the blank file with `--written-since` option provided: `era_invalidate meta.bin --written-since 0`

      Expected results

       

      The program should exit with just an error message, but no panics

      ```

      bad checksum in superblock

      ```

      Actual results

       

      The program exits with panics

      ```

      thread 'main' panicked at 'Mismatch between definition and access of `WRITTEN_SINCE`. Could not downcast to TypeId { t: 4518903163082958039 }, need to downcast to TypeId { t: 7975126953263805836 }
      ', /home/<name>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.19/src/parser/error.rs:32:9
      note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

      ```

       

            mtsai@redhat.com Ming Hung Tsai
            mtsai@redhat.com Ming Hung Tsai
            lvm-team lvm-team
            Filip Suba Filip Suba
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: