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

find_check_pool() bug with component layout

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      In the following codes, v3 isn't changed for each component. That means find command won't be able to find any file with pool in component layout.

      	for (i = 0; i < count; i++) {
      		if (comp_v1 != NULL)
      			v1 = lov_comp_entry(comp_v1, i);
      
      		if (((v1->lmm_magic == LOV_USER_MAGIC_V1) &&
      		     (param->fp_poolname[0] == '\0')) ||
      		    ((v1->lmm_magic == LOV_USER_MAGIC_V3) &&
      		     (strncmp(v3->lmm_pool_name,
      			      param->fp_poolname, LOV_MAXPOOLNAME) == 0)) ||
      		    ((v1->lmm_magic == LOV_USER_MAGIC_V3) &&
      		     (strcmp(param->fp_poolname, "*") == 0))) {
      			found = true;
      			break;
      		}
      	}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lixi_wc Li Xi
                Reporter:
                lixi_wc Li Xi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: