summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvd/nvd.c
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2016-01-25 09:40:25 +0000
committersmh <smh@FreeBSD.org>2016-01-25 09:40:25 +0000
commit94b1bbbd44bd88b6db1c00d795cdf7675b3ae254 (patch)
tree486dfda0d77754bca3db9d534a272d6b93572c75 /sys/dev/nvd/nvd.c
parent1645ae34595fa2572d59273f684bb4cc56be55db (diff)
downloadFreeBSD-src-94b1bbbd44bd88b6db1c00d795cdf7675b3ae254.zip
FreeBSD-src-94b1bbbd44bd88b6db1c00d795cdf7675b3ae254.tar.gz
MFC r292074:
Limit stripesize reported from nvd(4) to 4K Sponsored by: Multiplay
Diffstat (limited to 'sys/dev/nvd/nvd.c')
-rw-r--r--sys/dev/nvd/nvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c
index 7be8a18..24ee075 100644
--- a/sys/dev/nvd/nvd.c
+++ b/sys/dev/nvd/nvd.c
@@ -295,7 +295,7 @@ nvd_new_disk(struct nvme_namespace *ns, void *ctrlr_arg)
disk->d_sectorsize = nvme_ns_get_sector_size(ns);
disk->d_mediasize = (off_t)nvme_ns_get_size(ns);
disk->d_delmaxsize = (off_t)nvme_ns_get_size(ns);
- disk->d_stripesize = nvme_ns_get_stripesize(ns);
+ disk->d_stripesize = nvme_ns_get_optimal_sector_size(ns);
if (TAILQ_EMPTY(&disk_head))
disk->d_unit = 0;
OpenPOWER on IntegriCloud