run_test 60 "check mkfs.lustre --mkfsoptions -E -O options setting"
test_61() { # LU-80
- local reformat=false
+ local lxattr=false
[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.1.53) ] ||
{ skip "Need MDS version at least 2.1.53"; return 0; }
if [ $(facet_fstype $SINGLEMDS) == ldiskfs ] &&
- ! large_xattr_enabled; then
- reformat=true
- LDISKFS_MKFS_OPTS+=" -O large_xattr"
+ ! large_xattr_enabled; then
+ lxattr=true
for num in $(seq $MDSCOUNT); do
- add mds${num} $(mkfs_opts mds$num $(mdsdevname $num)) \
- --reformat $(mdsdevname $num) $(mdsvdevname $num) ||
- error "add mds $num failed"
+ do_facet mds${num} $TUNE2FS -O large_xattr \
+ $(mdsdevname $num) ||
+ error "tune2fs on mds $num failed"
done
fi
rm -f $file
stopall
- if $reformat; then
- LDISKFS_MKFS_OPTS=${LDISKFS_MKFS_OPTS% -O large_xattr}
- reformat
+ if $lxattr; then
+ for num in $(seq $MDSCOUNT); do
+ do_facet mds${num} $TUNE2FS -O ^large_xattr \
+ $(mdsdevname $num) ||
+ error "tune2fs on mds $num failed"
+ done
fi
}
run_test 61 "large xattr"
{ skip "Need MDS version at least 2.2.51"; return 0; }
echo "disable journal for mds"
- do_facet mds tune2fs -O ^has_journal $mdsdev || error "tune2fs failed"
+ do_facet mds $TUNE2FS -O ^has_journal $mdsdev || error "tune2fs failed"
start_mds && error "MDT start should fail"
echo "disable journal for ost"
- do_facet ost1 tune2fs -O ^has_journal $ostdev || error "tune2fs failed"
+ do_facet ost1 $TUNE2FS -O ^has_journal $ostdev || error "tune2fs failed"
start_ost && error "OST start should fail"
cleanup || error "cleanup failed with rc $?"
reformat_and_config