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

find_check_pool() bug with component layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • None
    • 3
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: