aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorChuck Tuffli <chuck@FreeBSD.org>2019-01-04 21:05:40 +0000
committerChuck Tuffli <chuck@FreeBSD.org>2019-01-04 21:05:40 +0000
commit202682a507594cbeae55be98001c071c94f38ff3 (patch)
tree7d186890630f1255a7ca1d3dcd6c8145c60539b8 /sys/cam/nvme/nvme_da.c
parentcc8795b45b8eccfb6000de190f332dc25e7914cf (diff)
downloadsrc-202682a507594cbeae55be98001c071c94f38ff3.tar.gz
src-202682a507594cbeae55be98001c071c94f38ff3.zip
MFC r342046: nda(4) fix check for Dataset Management support
Reported by: yuripv@yuripv.net Reviewed by: imp Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D18746
Notes
Notes: svn path=/stable/12/; revision=342777
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index f83a038506aa..0aa697b47b3c 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -787,7 +787,7 @@ ndaregister(struct cam_periph *periph, void *arg)
disk->d_mediasize = (off_t)(disk->d_sectorsize * nsd->nsze);
disk->d_delmaxsize = disk->d_mediasize;
disk->d_flags = DISKFLAG_DIRECT_COMPLETION;
-// if (cd->oncs.dsm) // XXX broken?
+ if (nvme_ctrlr_has_dataset_mgmt(cd))
disk->d_flags |= DISKFLAG_CANDELETE;
vwc_present = (cd->vwc >> NVME_CTRLR_DATA_VWC_PRESENT_SHIFT) &
NVME_CTRLR_DATA_VWC_PRESENT_MASK;