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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.12.0
    • Labels:
      None
    • Environment:
      both 2.10 and master branch have the problem
    • Severity:
      3
    • Rank (Obsolete):
      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

            People

            • Assignee:
              wshilong Wang Shilong
              Reporter:
              lixi_wc Li Xi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: