Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      int class_add_nids_to_uuid(struct obd_uuid *uuid, struct lnet_nid *nidlist,
                                 int nid_count, int nid_size)
      {
              struct uuid_nid_data *entry;
              int i, rc; 
              bool matched = false;
      
      
              ENTRY;
      
      
              if (nid_count >= MTI_NIDS_MAX) {
                      CDEBUG(D_NET, "too many NIDs (%d) for UUID '%s'\n",
                              nid_count, obd_uuid2str(uuid));
                      return -ENOSPC;
              }   
      ... 

      We need here strong comparison ( > ), otherwise it utilizes only 31 (MTI_NIDS_MAX -1 ) elements instead of 32 (MTI_NIDS_MAX).

      Attachments

        Activity

          People

            scherementsev Sergey Cheremencev
            scherementsev Sergey Cheremencev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: