From: girish Date: Thu, 26 Feb 2009 06:20:24 +0000 (+0000) Subject: b=17846 X-Git-Tag: GIT_EPOCH_B1_6~2^5~160 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9ed5fa8e551a3aab67d48a5658e7c2ba590b7e61;p=fs%2Flustre-release.git b=17846 i=girish i=h.huang o=adilger ignore stripe index 0 when setting striping via setxattr --- diff --git a/lustre/llite/xattr.c b/lustre/llite/xattr.c index 1709d2e..b58b17d 100644 --- a/lustre/llite/xattr.c +++ b/lustre/llite/xattr.c @@ -180,6 +180,12 @@ int ll_setxattr(struct dentry *dentry, const char *name, struct lov_user_md *lump = (struct lov_user_md *)value; int rc = 0; + /* Attributes that are saved via getxattr will always have + * the stripe_offset as 0. Instead, the MDS should be + * allowed to pick the starting OST index. b=17846 */ + if (lump->lmm_stripe_offset == 0) + lump->lmm_stripe_offset = -1; + if (S_ISREG(inode->i_mode)) { struct file f; int flags = FMODE_WRITE;