Whamcloud - gitweb
- print the error code if portals_do_debug_dumplog fails
authorpschwan <pschwan>
Mon, 2 Jun 2003 04:02:12 +0000 (04:02 +0000)
committerpschwan <pschwan>
Mon, 2 Jun 2003 04:02:12 +0000 (04:02 +0000)
- 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
lustre/portals/libcfs/debug.c

index e2470ec..8d26dbb 100644 (file)
@@ -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",
index e2470ec..8d26dbb 100644 (file)
@@ -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",