From patchwork Fri Jul 27 17:28:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: babu moger X-Patchwork-Id: 1250301 Return-Path: X-Original-To: patchwork-dm-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by patchwork1.kernel.org (Postfix) with ESMTP id 204793FD48 for ; Fri, 27 Jul 2012 17:31:47 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6RHSoPf000625; Fri, 27 Jul 2012 13:28:52 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6RHSn5C005515 for ; Fri, 27 Jul 2012 13:28:49 -0400 Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6RHShdV001829 for ; Fri, 27 Jul 2012 13:28:43 -0400 Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6RHSg9v027613 for ; Fri, 27 Jul 2012 13:28:42 -0400 X-IronPort-AV: E=Sophos;i="4.77,668,1336374000"; d="scan'208";a="669143937" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 27 Jul 2012 10:28:42 -0700 Received: from vmwexceht03-prd.hq.netapp.com (vmwexceht03-prd.hq.netapp.com [10.106.76.241]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q6RHSfmi018223; Fri, 27 Jul 2012 10:28:41 -0700 (PDT) Received: from SACEXCMBX02-PRD.hq.netapp.com ([169.254.1.34]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0298.004; Fri, 27 Jul 2012 10:28:40 -0700 From: "Moger, Babu" To: linux-scsi Thread-Topic: [PATCH] scsi : Adding all the definitions of host bytes in hostbyte_table Thread-Index: Ac1sHUNKqcwe4pFBTUyyEamEbnEZmw== Date: Fri, 27 Jul 2012 17:28:40 +0000 Message-ID: <77471C95FAFD844C8CA02DD4F4C5FE2B0BC9EDE3@SACEXCMBX02-PRD.hq.netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.106.53.53] MIME-Version: 1.0 X-RedHat-Spam-Score: -6.912 (BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.68 on 10.5.110.17 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id q6RHSn5C005515 X-loop: dm-devel@redhat.com Cc: "device-mapper development \(dm-devel@redhat.com\)" Subject: [dm-devel] [PATCH] scsi : Adding all the definitions of host bytes in hostbyte_table X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Submitted this patch earlier. But it still did not make it to kernel tree. Resubmitting again(recreated on top of 3.5 kernel). Adding all the definitions of host bytes in hostbyte_table. Without this patch, scsi_show_result prints hostbyte as invalid for statuses that are not defined in hostbyte_table(when scsi logging is enabled). Look at scsi_print_result function for better understanding. Signed-off-by: Babu Moger Acked-by: Hannes Reinecke