test_10() {
local parent=$DIR/$tdir
- local root_layout=$(get_layout_param $MOUNT)
+
+ save_layout_restore_at_exit $MOUNT
rm -rf $parent
$LFS setstripe -d $MOUNT || error "clear root layout"
[ x$f2_expect != x$f2_entry ] &&
error "$parent/file2 does not inherite root layout"
- $LFS setstripe $root_layout $MOUNT
return 0
}
run_test 10 "Inherit composite template from root"
$TRUNCATE $comp_file $((1024*1024*1+1))
f2=$($LFS getstripe -I2 $comp_file | grep "l_fid")
- [[ -z $f2 ]] && error "2: 2nd component uninstantiated"
+ [[ -z $f2 ]] && error "3: 2nd component uninstantiated"
f3=$($LFS getstripe -I3 $comp_file | grep "l_fid")
[[ -z $f3 ]] && error "3: 3rd component uninstantiated"
f4=$($LFS getstripe -I4 $comp_file | grep "l_fid")