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

standardize error code returned by lustreapi

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • None
    • None
    • 9223372036854775807

    Description

      right now it's pretty random. Sometimes the APIs return -errno, sometimes they set errno and return -1.

      Typical examples are llapi_fswap_layouts_grouplock() and llapi_layout_get_by_fd(). I would say the funnier one is llapi_open_by_fid() where llapi_search_mounts() return error code but llapi_open_by_fid() itself returns -1 as if the errno has been set.

      Attachments

        Activity

          People

            wc-triage WC Triage
            jay Jinshan Xiong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: