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

fix grow_xattr() defect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • Lustre 2.7.0
    • None
    • 3
    • 9223372036854775807

    Description

      grow_xattr() {
      ...
         [ -z $(lctl get_param -n mdc.*.connect_flags | grep xattr) ] &&
               skip "must have user_xattr" && return 0
      ..
      }
      

      string needs to be quoted to avoid syntax error on DNE setup:
      mdscount=2 :

      # lctl get_param  mdc.*.connect_flags | grep xattr
      xattr
      xattr
      # find /proc/fs/lustre/ -name connect_flags | grep mdc
      /proc/fs/lustre/mdc/lustre-MDT0001-mdc-ffff88005a998000/connect_flags
      /proc/fs/lustre/mdc/lustre-MDT0000-mdc-ffff88005a998000/connect_flags
      

      xtrace:

      + grow_xattr 65536
      + local xsize=65536
      + local file=/mnt/lustre/f102ha.sanity
      ++ grep xattr
      ++ lctl get_param -n 'mdc.*.connect_flags'
      + '[' -z xattr xattr ']'
      sanity.sh: line 6447: [: xattr: binary operator expected
      

      mdscount=3 :

      ++ lctl get_param -n 'mdc.*.connect_flags'
      + '[' -z xattr xattr xattr ']'
      sanity.sh: line 6447: [: too many arguments
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            egryaznova Elena Gryaznova
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: