[LU-5068] getstripedir shows wrong default stripe count Created: 15/May/14 Updated: 29/May/14 Resolved: 29/May/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.6.0 |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sarah Liu | Assignee: | Di Wang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: | |||
| Severity: | 3 |
| Rank (Obsolete): | 13994 |
| Description |
|
getdirstripe shows wrong default stripe count, although sub dir has the correct default stripe count |
| Comments |
| Comment by Di Wang [ 15/May/14 ] |
|
It seems we did not consider default LMV EA when we try to shrink the EA size in RPC. int mdt_attr_get_eabuf_size(struct mdt_thread_info *info, struct mdt_object *o)
{
.............
/* Is it a directory? Let's check for the LMV as well */
if (S_ISDIR(lu_object_attr(&mdt_object_child(o)->mo_lu))) {
rc2 = mo_xattr_get(env, mdt_object_child(o), &LU_BUF_NULL,
XATTR_NAME_LMV);
<-------------------------- we should check default LMV EA as well.
if ((rc2 < 0 && rc2 != -ENODATA) || (rc2 > rc))
rc = rc2;
}
|
| Comment by Di Wang [ 15/May/14 ] |
| Comment by Peter Jones [ 29/May/14 ] |
|
Landed for 2.6 |