init_logging
ALWAYS_EXCEPT="$SANITY_FLR_EXCEPT "
-# Bug number for skipped test: LU-11381
-ALWAYS_EXCEPT+=" 201 "
+# Bug number for skipped test: LU-14818 LU-11381
+ALWAYS_EXCEPT+=" 6 201 "
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
# skip all tests for PPC until we can get sanity-pfl to pass
}
run_test 16c "Verify setstripe/getstripe for SEL layout with YAML config file"
+test_16d() {
+ [ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs"
+
+ local file=$DIR/$tdir/$tfile
+ local dir=$DIR/$tdir/dir
+ local temp=$DIR/$tdir/template
+ rm -rf $DIR/$tdir
+ test_mkdir $DIR/$tdir
+
+ #####################################################################
+ # 1. DOM file
+ # set stripe for source file
+ $LFS setstripe -E1m -L mdt -E-1 -o1,0 $file ||
+ error "Create $file failed"
+
+ echo "1. DOM file"
+ verify_yaml_layout $file $file.copy $temp "1. DOM file"
+
+ #####################################################################
+ # 2. DOM dir
+ # set stripe for source dir
+ test_mkdir $dir
+ $LFS setstripe -E1m -L mdt -E-1 -o1,0 $dir || error "Create $dir failed"
+
+ test_mkdir $dir.copy
+ echo "2. DOM dir"
+ verify_yaml_layout $dir $dir.copy $temp.dir "2. DOM dir"
+}
+run_test 16d "Verify setstripe/getstripe for DOM layout with YAML config file"
+
+
test_17() {
[ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs"
local file=$DIR/$tdir/$tfile
/* Data-on-MDT component setting */
if (lsa->lsa_pattern == LLAPI_LAYOUT_MDT) {
+ /* Yaml support */
+ if (lsa->lsa_stripe_count == 0)
+ lsa->lsa_stripe_count = LLAPI_LAYOUT_DEFAULT;
+ if (lsa->lsa_stripe_size == lsa->lsa_comp_end)
+ lsa->lsa_stripe_size = LLAPI_LAYOUT_DEFAULT;
+ if (lsa->lsa_stripe_off == -1 ||
+ lsa->lsa_stripe_off == 0)
+ lsa->lsa_stripe_off = LLAPI_LAYOUT_DEFAULT;
/*
* In case of Data-on-MDT patterns the only extra option
* applicable is stripe size option.