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

Christoph Hellwig
2015-05-07T07:29:15Z

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.