From a1a3ab0e125a828b23bfc4c936027b579584cc76 Mon Sep 17 00:00:00 2001 From: nathan <nathan> Date: Thu, 28 Jun 2007 18:42:11 +0000 Subject: [PATCH] i=adilger * fix ldiskfs module path * add uml debug file paths --- lnet/libcfs/debug.c | 4 ++++ lnet/libcfs/linux/linux-debug.c | 2 +- lnet/utils/debug.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index f5aff7fe81..a3b165125f 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -67,7 +67,11 @@ EXPORT_SYMBOL(libcfs_kmemory); static cfs_waitq_t debug_ctlwq; +#ifdef __arch_um__ +char debug_file_path[1024] = "/r/tmp/lustre-log"; +#else char debug_file_path[1024] = "/tmp/lustre-log"; +#endif int libcfs_panic_in_progress; diff --git a/lnet/libcfs/linux/linux-debug.c b/lnet/libcfs/linux/linux-debug.c index 93cddd83c7..d1db71a19b 100644 --- a/lnet/libcfs/linux/linux-debug.c +++ b/lnet/libcfs/linux/linux-debug.c @@ -121,7 +121,7 @@ void lbug_with_loc(char *file, const char *func, const int line) { libcfs_catastrophe = 1; libcfs_debug_msg(NULL, 0, D_EMERG, file, func, line, - "LBUG - trying to dump log to /tmp/lustre-log\n"); + "LBUG - trying to dump log to %s\n", debug_file_path); libcfs_debug_dumplog(); libcfs_run_lbug_upcall(file, func, line); asm("int $3"); diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index 4affbbba1e..9a11432e14 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -769,7 +769,7 @@ static struct mod_paths { {"mdc", "lustre/mdc"}, {"llite", "lustre/llite"}, {"lustre", "lustre/llite"}, - {"ldiskfs", "lustre/ldiskfs"}, + {"ldiskfs", "ldiskfs/ldiskfs"}, {"smfs", "lustre/smfs"}, {"obdecho", "lustre/obdecho"}, {"ldlm", "lustre/ldlm"}, -- GitLab