X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_reint.c;h=d602111fdb7a1f016346848364f03dc699bbb6f4;hb=1a165c02f5e97c830800d6dcbc11e86790fc015d;hp=f751f98a56f307fa68f62f72d11c7508fc6d1925;hpb=a039688121a6fd4ad6424c5baa8143bb0eaebe50;p=fs%2Flustre-release.git diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index f751f98..d602111 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -313,8 +313,13 @@ static int mdt_remote_permission(struct mdt_thread_info *info, return -ENOTSUPP; if (S_ISDIR(attr->la_mode) && spec->u.sp_ea.eadata != NULL && - spec->u.sp_ea.eadatalen != 0 && !mdt_is_striped_client(exp)) - return -ENOTSUPP; + spec->u.sp_ea.eadatalen != 0) { + const struct lmv_user_md *lum = spec->u.sp_ea.eadata; + + if (le32_to_cpu(lum->lum_stripe_count) > 1 && + !mdt_is_striped_client(exp)) + return -ENOTSUPP; + } return 0; }