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

build: Improve the detection of o2iblnd path

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Medium
    • Lustre 2.18.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      1) Make the common config/lustre-lnet.m4 do more check for o2iblnd path.

      2)  The common config/lustre-lnet.m4  is the unified way to check o2iblnd path on both rhel and debian so remove the duplicated code. as below:

      lustre/scripts/dkms.mkconf:
      ...
      flavor=\$(echo \$kernelver | tr '-' '\\n' | tail -1)
      if grep -F -q '.' <<< \$flavor ; then
          flavor=default;
      fi
      ...
      if [ -d /usr/src/ofa_kernel/\${flavor} ]; then
          OPTS="\${OPTS} --with-o2ib=/usr/src/ofa_kernel/\${flavor}"
      elif [ -d /usr/src/ofa_kernel/default ]; then
          OPTS="\${OPTS} --with-o2ib=/usr/src/ofa_kernel/default"
      fi
      ...

      Attachments

        Activity

          People

            xyang Xiao Yang
            xyang Xiao Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: