[LU-13140] find_check_pool() bug with component layout Created: 15/Jan/20 Updated: 28/Jun/20 Resolved: 28/Jun/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Li Xi | Assignee: | Li Xi |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| 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;
}
}
|
| Comments |
| Comment by Gerrit Updater [ 15/Jan/20 ] |
|
Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/37247 |
| Comment by Andreas Dilger [ 28/Jun/20 ] |
|
Close as a duplicate of |