From e42d7c9ba49abd87a0cf3c45ef6f93c4769b1b4c Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 30 May 2002 19:00:09 +0000 Subject: [PATCH] Set the dir_index flag on extN filesystems if we are creating them. --- lustre/tests/common.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lustre/tests/common.sh b/lustre/tests/common.sh index eb5d156..5cc7f06 100644 --- a/lustre/tests/common.sh +++ b/lustre/tests/common.sh @@ -91,6 +91,9 @@ new_fs () { LOOPDEV=`next_loop_dev` losetup ${LOOPDEV} $2 1>&2 || exit -1 fi + + # Enable hash-indexed directories for extN filesystems + [ "$1" = "extN" ] && echo "feature FEATURE_C5" | debugfs -w $2 } # Set up to use an existing filesystem. We take the same parameters as @@ -193,11 +196,13 @@ setup_lustre() { do_insmod $LUSTRE/class/obdclass.o || exit -1 do_insmod $LUSTRE/rpc/ptlrpc.o || exit -1 do_insmod $LUSTRE/ldlm/ldlm.o || exit -1 - do_insmod $LUSTRE/extN/extN.o + do_insmod $LUSTRE/extN/extN.o || \ + echo "info: can't load extN.o module, not fatal if using ext3" do_insmod $LUSTRE/mds/mds.o || exit -1 do_insmod $LUSTRE/mds/mds_ext2.o || exit -1 do_insmod $LUSTRE/mds/mds_ext3.o || exit -1 - do_insmod $LUSTRE/mds/mds_extN.o + do_insmod $LUSTRE/mds/mds_extN.o || \ + echo "info: can't load mds_extN.o module, needs extN.o" do_insmod $LUSTRE/obdecho/obdecho.o || exit -1 do_insmod $LUSTRE/ext2obd/obdext2.o || exit -1 do_insmod $LUSTRE/filterobd/obdfilter.o || exit -1 -- 1.8.3.1