Whamcloud - gitweb
b=13884
authorliuy <liuy>
Thu, 1 Nov 2007 02:59:57 +0000 (02:59 +0000)
committerliuy <liuy>
Thu, 1 Nov 2007 02:59:57 +0000 (02:59 +0000)
i=adilger, deen

change the error message in llu_file_prwv()

lustre/liblustre/rw.c

index 6e03a07..3475670 100644 (file)
@@ -774,7 +774,7 @@ ssize_t llu_file_prwv(const struct iovec *iovec, int iovlen,
 
         err = oig_wait(iogroup->lig_oig);
         if (err) {
-                CERROR("sync error %d, data corruption possible\n", err);
+                CERROR("%s error: %s\n", is_read ? "read" : "write", strerror(-err));
                 GOTO(err_unlock, err);
         }