From 6f93ec4caacf4d6b4e7f46c620395864316e8dcc Mon Sep 17 00:00:00 2001 From: pschwan Date: Mon, 2 Jun 2003 04:02:12 +0000 Subject: [PATCH] - print the error code if portals_do_debug_dumplog fails - demote "mmap readpage - check locks" message to a CDEBUG - don't try to set mtime on OSTs if there's no LSM (file not yet opened) - print which client (nid) returned an error from a blocking AST --- lnet/libcfs/debug.c | 3 ++- lustre/portals/libcfs/debug.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index e2470ec..8d26dbb 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -237,7 +237,8 @@ int portals_do_debug_dumplog(void *arg) file = filp_open(debug_file_name, O_CREAT|O_TRUNC|O_RDWR, 0644); if (!file || IS_ERR(file)) { - CERROR("cannot open %s for dumping", debug_file_name); + CERROR("cannot open %s for dumping: %ld\n", debug_file_name, + PTR_ERR(file)); GOTO(out, PTR_ERR(file)); } else { printk(KERN_ALERT "dumping log to %s ... writing ...\n", diff --git a/lustre/portals/libcfs/debug.c b/lustre/portals/libcfs/debug.c index e2470ec..8d26dbb 100644 --- a/lustre/portals/libcfs/debug.c +++ b/lustre/portals/libcfs/debug.c @@ -237,7 +237,8 @@ int portals_do_debug_dumplog(void *arg) file = filp_open(debug_file_name, O_CREAT|O_TRUNC|O_RDWR, 0644); if (!file || IS_ERR(file)) { - CERROR("cannot open %s for dumping", debug_file_name); + CERROR("cannot open %s for dumping: %ld\n", debug_file_name, + PTR_ERR(file)); GOTO(out, PTR_ERR(file)); } else { printk(KERN_ALERT "dumping log to %s ... writing ...\n", -- 1.8.3.1