[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:
Duplicate
is duplicated by LU-13721 "lfs find --pool" does not work for P... Resolved
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
Subject: LU-13140 utils: find_check_pool with component layout
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 87d8b099e195ad25ee67b43886037d61e306c02b

Comment by Andreas Dilger [ 28/Jun/20 ]

Close as a duplicate of LU-13721.

Generated at Sat Feb 10 02:58:44 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.