Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751595AbbEGH3R (ORCPT ); Thu, 7 May 2015 03:29:17 -0400 Received: from verein.lst.de ([213.95.11.211]:52630 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750843AbbEGH3P (ORCPT ); Thu, 7 May 2015 03:29:15 -0400 Date: Thu, 7 May 2015 09:29:13 +0200 From: Christoph Hellwig To: Dan Williams Cc: "Elliott, Robert (Server Storage)" , "linux-nvdimm@lists.01.org" , Neil Brown , Dave Chinner , "H. Peter Anvin" , Christoph Hellwig , "Wysocki, Rafael J" , "Moore, Robert" , Ingo Molnar , "linux-acpi@vger.kernel.org" , Jens Axboe , Borislav Petkov , Thomas Gleixner , Greg KH , "linux-kernel@vger.kernel.org" , Andy Lutomirski , Andrew Morton , Linus Torvalds Subject: Re: [Linux-nvdimm] [PATCH v2 00/20] libnd: non-volatile memory device support Message-ID: <20150507072913.GB23239@lst.de> References: <20150428181203.35812.60474.stgit@dwillia2-desk3.amr.corp.intel.com> <94D0CD8314A33A4D9D801C0FE68B40295A8C934B@G9W0745.americas.hpqcorp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 17 On Tue, Apr 28, 2015 at 03:15:54PM -0700, Dan Williams wrote: > > lsblk's blkdev_scsi_type_to_name() considers 4 to mean > > SCSI_TYPE_WORM (write once read many ... used for certain optical > > and tape drives). > > Why is lsblk assuming these are scsi devices? I'll need to go check that out. It's a very common assumption unfortunately. I rember fixing it in various in-house tools at customers and stumbled over it in targetcli recently. Please use a prefix for your type attribute to avoid this problem. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/