Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-11198

“lctl get_param“ doesn't return errno when reading fails

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.12.0
    • None
    • None
    • both 2.10 and master branch have the problem
    • 3
    • 9223372036854775807

    Description

      The problem (Or feature? I don't think it is a good feature though) is caused by a defect in param_display(). The return failure of read_param() is ignored.

       

      1. lctl get_param -n ost.OSS.ost_io.nrs_tbf_rule
        error: get_param: reading 'ost.OSS.ost_io.nrs_tbf_rule': No such device
        ]# echo $?
        0

      Attachments

        Activity

          [LU-11198] “lctl get_param“ doesn't return errno when reading fails
          pjones Peter Jones added a comment -

          Landed for 2.12

          pjones Peter Jones added a comment - Landed for 2.12

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32925/
          Subject: LU-11198 utils: propagate errors for read_param
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 6ca2425ccf6bf7176a37a4c93a67995479307036

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32925/ Subject: LU-11198 utils: propagate errors for read_param Project: fs/lustre-release Branch: master Current Patch Set: Commit: 6ca2425ccf6bf7176a37a4c93a67995479307036

          Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/32925
          Subject: LU-11198 utils: propagate errors for read_param
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 0e0bf55db8f269dbc6c2d7856be9c7d182fed713

          gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/32925 Subject: LU-11198 utils: propagate errors for read_param Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 0e0bf55db8f269dbc6c2d7856be9c7d182fed713

          People

            wshilong Wang Shilong (Inactive)
            lixi_wc Li Xi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: