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

find_check_pool() bug with component layout

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

            [LU-13140] find_check_pool() bug with component layout

            Close as a duplicate of LU-13721.

            adilger Andreas Dilger added a comment - Close as a duplicate of LU-13721 .

            Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/37247
            Subject: LU-13140 utils: find_check_pool with component layout
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 87d8b099e195ad25ee67b43886037d61e306c02b

            gerrit Gerrit Updater added a comment - Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/37247 Subject: LU-13140 utils: find_check_pool with component layout Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 87d8b099e195ad25ee67b43886037d61e306c02b

            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: