Whamcloud - gitweb
Branch b1_4
authorbobijam <bobijam>
Thu, 21 Jun 2007 03:08:09 +0000 (03:08 +0000)
committerbobijam <bobijam>
Thu, 21 Jun 2007 03:08:09 +0000 (03:08 +0000)
b=11686
i=green, adilger

improve some error messages.

lnet/libcfs/tracefile.c

index 0b8e61e..4bf6693 100644 (file)
@@ -655,8 +655,9 @@ int tracefile_dump_all_pages(char *filename)
         filp = cfs_filp_open(filename,
                              O_CREAT|O_EXCL|O_WRONLY|O_LARGEFILE, 0600, &rc);
         if (!filp) {
-                printk(KERN_ERR "LustreError: can't open %s for dump: rc %d\n",
-                       filename, rc);
+                if (rc != -EEXIST)
+                        printk(KERN_ERR "LustreError: can't open %s for dump: rc %d\n",
+                               filename, rc);
                 goto out;
         }