extern struct recovd_obd *ptlrpc_recovd;
+int ll_recover(struct recovd_data *rd, int phase);
+
#endif
request->rq_connection->c_level = LUSTRE_CONN_FULL;
cli->cl_import.imp_handle = *(struct lustre_handle *)request->rq_repmsg;
+ recovd_conn_manage(cli->cl_import.imp_connection,
+ ptlrpc_recovd, ll_recover);
+
+
EXIT;
out_req:
ptlrpc_free_req(request);
LINX=page.c
-llite_SOURCES = dcache.c recover.c commit_callback.c super.c rw.c
+llite_SOURCES = dcache.c commit_callback.c super.c rw.c
llite_SOURCES += file.c dir.c sysctl.c namei.c symlink.c $(LINX)
llite_SOURCES += lov_pack.c
CERROR("cannot connect to %s: rc = %d\n", mdc, err);
GOTO(out_free, sb = NULL);
}
- recovd_conn_manage(obd->u.cli.cl_import.imp_connection,
- ptlrpc_recovd, ll_recover);
#warning Peter: is this the right place to raise the connection level?
sbi2mdc(sbi)->cl_import.imp_connection->c_level = LUSTRE_CONN_FULL;
CERROR("cannot connect to %s: rc = %d\n", osc, err);
GOTO(out_mdc, sb = NULL);
}
- recovd_conn_manage(obd->u.cli.cl_import.imp_connection,
- ptlrpc_recovd, ll_recover);
/* XXX: need to store the last_* values somewhere */
err = mdc_getstatus(&sbi->ll_mdc_conn, &rootfid, &last_committed,
modulefs_DATA = ptlrpc.o
EXTRA_PROGRAMS = ptlrpc
-ptlrpc_SOURCES = recovd.c connection.c rpc.c events.c service.c client.c niobuf.c pack_generic.c
+ptlrpc_SOURCES = recovd.c recover.c connection.c rpc.c events.c service.c client.c niobuf.c pack_generic.c
include $(top_srcdir)/Rules
#include <linux/lustre_lite.h>
#include <linux/lustre_ha.h>
+#if 0
+/* FIXME: reference to mdc_getstatus causes dependency problems */
static int ll_reconnect(struct ll_sb_info *sbi)
{
struct ll_fid rootfid;
out_disc:
return err;
}
+#endif
static int ll_recover_upcall(struct ptlrpc_connection *conn)
{
EXPORT_SYMBOL(lustre_unpack_msg);
EXPORT_SYMBOL(lustre_msg_buf);
+EXPORT_SYMBOL(ll_recover);
+
+
MODULE_AUTHOR("Cluster File Systems, Inc <info@clusterfs.com>");
MODULE_DESCRIPTION("Lustre Request Processor v1.0");
MODULE_LICENSE("GPL");