From patchwork Sun May 22 01:58:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petros Koutoupis X-Patchwork-Id: 9130689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC3EA60762 for ; Sun, 22 May 2016 01:58:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3EF428159 for ; Sun, 22 May 2016 01:58:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98BFA28161; Sun, 22 May 2016 01:58:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CDE028159 for ; Sun, 22 May 2016 01:58:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbcEVB6v (ORCPT ); Sat, 21 May 2016 21:58:51 -0400 Received: from mout.perfora.net ([74.208.4.196]:60393 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751842AbcEVB6u (ORCPT ); Sat, 21 May 2016 21:58:50 -0400 Received: from [192.168.1.69] ([99.41.188.243]) by mrelay.perfora.net (mreueus002) with ESMTPSA (Nemesis) id 0LsS5u-1bX9E84BSK-0123tA; Sun, 22 May 2016 03:58:41 +0200 Message-ID: <1463882319.4525.3.camel@petros-ultrathin> Subject: scsi_common: Modify SMR device type to reflect SCSI specification From: Petros Koutoupis To: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: "petros@petroskoutoupis.com" Date: Sat, 21 May 2016 20:58:39 -0500 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 X-Provags-ID: V03:K0:MWTn6sFRCXKPit9cIa2XZOAmS2uOxV+D3udKuVxQfBXlG+hL4VM 5+XEOtYNfFlSRDiSUmmt3SZB3OluwhlqW0Ax+yLfRtTgl8e4cjo4pCk3zID7sVlBhd8JLqO Xrce2JrgwTZw6nNNjtaqGdQMDaV2bH15UooTi11gx2ioRbqrFgjlcGwdmxhkGRVm07YlxJB hfeiRoro0u5TBk2/1w64w== X-UI-Out-Filterresults: notjunk:1; V01:K0:Qfx3BkSs/R8=:EkRtzakIkEId1DtjdbgKkq sIYlA9aQybZY5iYNXyXpsK4qhShXPjPw+6nfv0tOWVgBzyWPIqnNmzHKmotwG1LevkA9iNVdm vNEnQvJVkGFe0sLKVZ21kYvrc212mvxivrTCKwI7W8UfCnOJEP3sYMsBVMPDS7AXUFZV+Ci+A Rb820ye5Qoui+LpP0pWaaDkQEAnkraiIbaik6L2b274Zd/Si+x7W0ldYoNaKu/p7622Gx+y/R G0CDpF6PEZSI5QUK2wLIh1Kro29o+9WZRw3fBzLy4w7Z3GaB3FHBeHWvihWWoxY2p5UUUtcKP 8ESn8Jf+4jYT7wNd7ZgrDQ0bisqLWLV2huA9XnJXAN3RkCyQnfpdk7IAmIr13dm7x3Gb3My/Z q6fOZUdac4mc6aMOM3SxvfoQjhonx2ycgKaqLdyzgv6FKzCB+e5ELse+BsKwPs9JigxRO1BJf BzcfnSbMqlXVHMrOCoJ/xE2WVBEhadWnGsUUzacF78+Ji0FoRDa6FKbRLG+dcn3FQC/BryhrI gAA4lqwsKkz+I2V9exDvg5tVWYTfMxF6jHDqvClxMZoJsi2W0jPBGdbF+PTp7ABWabKJR5ubi WDoaAQ+keOzaEDcPj3QfXHLqr6gd/NUbtEx3IHBWzwJAgngiCXvAlRYcR7VvITXomXw2gvGOS YiUV0pww31DQ+NhYhAcFUA/NORx/9tVoKUKbOmB8bT+59nrL2e2QHgcn/CYTaaZlpiPUXBVGD RXck2us+JlizIid4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This change is purely cosmetic but we should adjust device type 0x14 to reflect the definition given in the SCSI specification standard (SPC-5). Implying Direct-Access assumes that the device supports the traditional Direct-Access command set when Host Managed Zoned Block Devices support a subset of that command set with a few zone specific additions. Please refer to the ZBC for details. Signed-off-by: Petros Koutoupis --- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux/drivers/scsi/scsi_common.c.orig 2016-05-12 12:23:04.450000000 -0500 +++ linux/drivers/scsi/scsi_common.c 2016-05-12 12:29:08.382000000 -0500 @@ -14,27 +14,27 @@ * encouraged once assigned by ANSI/INCITS T10 */ static const char *const scsi_device_types[] = { - "Direct-Access ", - "Sequential-Access", - "Printer ", - "Processor ", - "WORM ", - "CD-ROM ", - "Scanner ", - "Optical Device ", - "Medium Changer ", - "Communications ", - "ASC IT8 ", - "ASC IT8 ", - "RAID ", - "Enclosure ", - "Direct-Access-RBC", - "Optical card ", - "Bridge controller", - "Object storage ", - "Automation/Drive ", - "Security Manager ", - "Direct-Access-ZBC", + "Direct-Access ", + "Sequential-Access ", + "Printer ", + "Processor ", + "WORM ", + "CD-ROM ", + "Scanner ", + "Optical Device ", + "Medium Changer ", + "Communications ", + "ASC IT8 ", + "ASC IT8 ", + "RAID ", + "Enclosure ", + "Direct-Access-RBC ", + "Optical card ", + "Bridge controller ", + "Object storage ", + "Automation/Drive ", + "Security Manager ", + "Host Managed Zoned", }; /**