*/
do_sync = rc;
+ /* TODO: DoM migration is not supported yet */
+ if (S_ISREG(lu_object_attr(&sobj->mot_obj))) {
+ ma->ma_lmm = info->mti_big_lmm;
+ ma->ma_lmm_size = info->mti_big_lmmsize;
+ ma->ma_valid = 0;
+ rc = mdt_stripe_get(info, sobj, ma, XATTR_NAME_LOV);
+ if (rc)
+ GOTO(put_source, rc);
+
+ if (ma->ma_valid & MA_LOV &&
+ mdt_lmm_dom_entry(ma->ma_lmm) != LMM_NO_DOM)
+ GOTO(put_source, rc = -EOPNOTSUPP);
+ }
+
/* if migration HSM is allowed */
if (!mdt->mdt_opts.mo_migrate_hsm_allowed) {
ma->ma_need = MA_HSM;
}
run_test 230i "lfs migrate -m tolerates trailing slashes"
+test_230j() {
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.11.52) ] &&
+ skip "Need MDS version at least 2.11.52"
+
+ $LFS mkdir -m 0 -c 1 $DIR/$tdir || error "mkdir $tdir failed"
+ $LFS setstripe -E 1M -L mdt $DIR/$tdir/$tfile ||
+ error "create $tfile failed"
+ cat /etc/passwd > $DIR/$tdir/$tfile
+
+ $LFS migrate -m 1 $DIR/$tdir
+
+ cmp /etc/passwd $DIR/$tdir/$tfile ||
+ error "DoM file mismatch after migration"
+}
+run_test 230j "DoM file data not changed after dir migration"
+
test_231a()
{
# For simplicity this test assumes that max_pages_per_rpc