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

sanity-hsm file_creation_failure sends df output to stdout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.7.0
    • Lustre 2.7.0
    • 3
    • 16867

    Description

      The file_creation_failure() function added to sanity-hsm calls df for debugging purposes but does not redirect the output of df to stderr. Since file_creation_failure is used in functions like make_large_for_cancel which are in turn used in command substitution

      local f=$(make_large_for_cancel ...)
      

      the df output goes into $f.

      Also many of these functions check for success by calling path2fid which pipes lfs to tr

      path2fid() {
              $LFS path2fid $1 | tr -d '[]'
      }
      

      Since tr will succeed this will fail to detect errors.

      Attachments

        Issue Links

          Activity

            People

              jhammond John Hammond
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: