Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#698 closed enhancement (wontfix)

Support nvme nvd device IDs

Reported by: cpuroast Owned by: Alex Samorukov
Priority: minor Milestone: Release 7.0
Component: all Version: 6.5
Keywords: nvme freebsd Cc:

Description (last modified by Christian Franke)

As per:

The nvd driver exposes NVM Express (NVMe) namespaces as disks to the kernel disk storage API

Device nodes from the nvd driver will have the format /dev/nvdX

smartctl -a /dev/nvd0

/dev/nvd0: Unable to detect device type
Please specify device type with the -d option.

smartctl -a /dev/nvd0 -d nvme

Smartctl open device: /dev/nvd0 failed: NVMe controller controller/namespace ids must begin with '/dev/nvme'

smartctl -a /dev/nvme0

Model Number:                       INTEL SSDPEDMD400G4
Serial Number:                      CVFT5343004C400BGN
Firmware Version:                   8DV10171
PCI Vendor/Subsystem ID:            0x8086
IEEE OUI Identifier:                0x5cd2e4
Controller ID:                      0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          400,088,457,216 [400 GB]
Namespace 1 Formatted LBA Size:     512
Local Time is:                      Tue May 24 13:55:23 2016 EDT
Firmware Updates (0x02):            1 Slot
Optional Admin Commands (0x0006):   Format Frmw_DL
Optional NVM Commands (0x0006):     Wr_Unc DS_Mngmt
Maximum Data Transfer Size:         32 Pages

Would it be somehow possible to alias nvd0 to nvme0?

Change History (7)

comment:1 by Christian Franke, 8 years ago

Description: modified (diff)
Keywords: nvme freebsd added
Milestone: undecided

comment:2 by Alex Samorukov, 8 years ago

Owner: set to Alex Samorukov
Priority: majorminor
Status: newassigned

Hi, i don't think that such alias needs to be done:

  1. It is possible to have nvme device without nvd nodes exported. E.g. if no nvd driver loaded or if device does not export any usable namespace.
  2. On system level only /dev/nvme* supports corresponding ioctl-s
  3. I would like to keep syntax compatible with windows/linux versions were it is /dev/nvme* only.

As quick workaround i will just add warning "Please use /dev/nvme* syntax" if user will try o use /dev/nvd*.

comment:3 by Christian Franke, 8 years ago

Possibly related ticket from FreeNAS bug tracker:

comment:4 by Alex Samorukov, 7 years ago

Resolution: wontfix
Status: assignedclosed

Hint added in r4602

comment:5 by Christian Franke, 7 years ago

Milestone: undecided

comment:6 by Alex Samorukov, 7 years ago

Milestone: Release 6.7

comment:7 by Christian Franke, 6 years ago

Milestone: Release 6.7Release 7.0

Milestone renamed

Note: See TracTickets for help on using tickets.