}
run_test 56ei "test lfs find --printf prints correct projid for special files"
+test_56ej() {
+ test_mkdir $DIR/$tdir.src ||
+ error "mkdir failed on $DIR/$tdir.src"
+ test_mkdir $DIR/$tdir.dest ||
+ error "mkdir failed on $DIR/$tdir.dest"
+ local f_mgrt=$DIR/$tdir.dest/$tfile.mgrt
+
+ $LFS setstripe -o 1 $DIR/$tdir.src
+ $LFS setstripe -o 0 $DIR/$tdir.dest
+ dd if=/dev/random of=$f_mgrt bs=1M count=1
+
+ $LFS migrate --non-block --copy $DIR/$tdir.src $f_mgrt ||
+ error "migrate remote dir error $DIR/$tdir.src $f_mgrt"
+}
+run_test 56ej "lfs migration --non-block copy"
+
test_57a() {
[ $PARALLEL == "yes" ] && skip "skip parallel run"
# note test will not do anything if MDS is not local
else if (lum->lmm_magic == LOV_MAGIC_V3 ||
lum->lmm_magic == __swab32(LOV_MAGIC_V3))
magic = LOV_MAGIC_V3;
+ else if (lum->lmm_magic == LOV_MAGIC_SPECIFIC ||
+ lum->lmm_magic == __swab32(LOV_MAGIC_SPECIFIC))
+ magic = LOV_MAGIC_V3;
else if (lum->lmm_magic == LOV_MAGIC_COMP_V1 ||
lum->lmm_magic == __swab32(LOV_MAGIC_COMP_V1))
magic = LOV_MAGIC_COMP_V1;
layout->llot_gen = comp_v1->lcm_layout_gen;
layout->llot_flags = comp_v1->lcm_flags;
} else if (lum->lmm_magic == LOV_MAGIC_V1 ||
- lum->lmm_magic == LOV_MAGIC_V3) {
+ lum->lmm_magic == LOV_MAGIC_V3 ||
+ lum->lmm_magic == LOV_MAGIC_SPECIFIC) {
ent_count = 1;
layout->llot_is_composite = false;