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

lfs migrate on non-existing file returns exit code 0

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.14.0, Lustre 2.12.5
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      Since merge of LU-11510, lfs migrate on a non-existing file will give the following error "lfs migrate: can't create composite layout from file /some/path/to/file" and will exit with code 0, potentially leaving a calling script unaware of the error.

       

      The non-existing file is caught earlier than before by the call to llapi_layout_get_by_path() in lfs_setstripe_internal(), which does not return error code.

      However, it sets errno in case of failure, but this is not used by the caller, which gets out without setting the exit code.

        Attachments

          Activity

            People

            • Assignee:
              spiechurski Sebastien Piechurski
              Reporter:
              spiechurski Sebastien Piechurski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: