From 85cc9d57974bf71819c2b59138d1a5ba10a05a81 Mon Sep 17 00:00:00 2001 From: rread Date: Mon, 13 Oct 2003 22:44:45 +0000 Subject: [PATCH] msg --- lustre/ptlrpc/ptlrpc_lib.c | 3 +++ lustre/tests/replay-single.sh | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lustre/ptlrpc/ptlrpc_lib.c b/lustre/ptlrpc/ptlrpc_lib.c index c2e90f8..8adb823 100644 --- a/lustre/ptlrpc/ptlrpc_lib.c +++ b/lustre/ptlrpc/ptlrpc_lib.c @@ -132,6 +132,9 @@ int client_obd_setup(struct obd_device *obddev, obd_count len, void *buf) cli->cl_max_mds_cookiesize = sizeof(struct llog_cookie); cli->cl_sandev = to_kdev_t(0); + + obddev->obd_logops = &llogd_client_ops; + /* Register with management client if we need to. */ if (lcfg->lcfg_inllen3 > 0) { char *mgmt_name = lcfg->lcfg_inlbuf3; diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 8ab3e24..6b99216 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -40,10 +40,10 @@ build_test_filter cleanup() { [ "$DAEMONFILE" ] && lctl debug_daemon stop - umount $MOUNT + umount $MOUNT || true rmmod llite - stop mds ${FORCE} $MDSLCONFARGS --dump cleanup.log - stop ost ${FORCE} + stop mds ${FORCE} $MDSLCONFARGS + stop ost ${FORCE} --dump cleanup.log } if [ "$ONLY" == "cleanup" ]; then @@ -56,10 +56,11 @@ gen_config start ost --reformat $OSTLCONFARGS start mds --write_conf --reformat $MDSLCONFARGS -# start client --gdb $CLIENTLCONFARGS + +# 0-conf client insmod ../llite/llite.o || true +[ -d /r ] && lctl modules > /r/tmp/ogdb-`hostname` [ -d $MOUNT ] || mkdir $MOUNT - mount -t lustre_lite -o mds_uuid=mds1_UUID,profile=client_facet replay-single $MOUNT [ "$DAEMONFILE" ] && lctl debug_daemon start $DAEMONFILE $DAEMONSIZE -- 1.8.3.1