[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:

build #http://build.whamcloud.com/job/lustre-reviews/23893/


Severity: 3
Rank (Obsolete): 13994

 Description   

getdirstripe shows wrong default stripe count, although sub dir has the correct default stripe count
[root@client-3 lustre]# lfs setdirstripe -D -c2 /mnt/lustre/test
[root@client-3 lustre]# lfs getdirstripe -D /mnt/lustre/test
(Default)/mnt/lustre/test
lmv_stripe_count: 0
lmv_stripe_offset: -1[root@client-3 lustre]#



 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 ]

http://review.whamcloud.com/10338

Comment by Peter Jones [ 29/May/14 ]

Landed for 2.6

Generated at Sat Feb 10 01:48:15 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.