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

sanity test_255a uses integer comparison for non-integers

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.14.0
    • None
    • None
    • 9223372036854775807

      The "-gt" option in the shell "['" (aka "test") command compares integers.

      ladvise_willread_performance() in sanity.sh uses "scale=2" to ask bc to calculate values to 2 decimal places.  These values are then compared with "-gt" which will fail (unless by luck they are integers).

      This failure is not normally noticed as the error is only reported when no vm is detected.  (When I run qemu, no vm is detected, so I notice.)

            neilb Neil Brown (Inactive)
            neilb Neil Brown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: