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

thin_rmap should fail and return an error message when using invalid range

    • None
    • Moderate
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      thin_rmap returns 0 when using invalid range. It should return 1 and an error message.

      Version-Release number of selected component (if applicable):
      device-mapper-persistent-data-1.0.4-1.el9

      How reproducible:
      always

      Steps to Reproduce:
      1. thin_rmap /dev/mapper/vgtest-swapvol --region 10..0

      Actual results:
      thin_rmap returns 0 and no output

      Expected results:
      Should return 1 for using invalid range and print error message similar to one in 0.9.0 version

      Additional info:
      In 0.9.0 thin_rmap returns following error message for invalid regions:

      1. thin_rmap /dev/mapper/vgtest-swapvol --region 0..0
        badly formed region (end <= begin)
      1. thin_rmap /dev/mapper/vgtest-swapvol --region 10..0
        badly formed region (end <= begin)

              mtsai@redhat.com Ming Hung Tsai
              rhn-support-fsuba Filip Suba
              Ming Hung Tsai Ming Hung Tsai
              Filip Suba Filip Suba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: