Re: [Linux-nvdimm] [PATCH v2 00/20] libnd: non-volatile memory device support

From: Christoph Hellwig
Date: Thu May 07 2015 - 03:29:20 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/