Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145084093
D53339.1777371364.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
834 B
Referenced Files
None
Subscribers
None
D53339.1777371364.diff
View Options
diff --git a/sys/dev/nvmf/host/nvmf.c b/sys/dev/nvmf/host/nvmf.c
--- a/sys/dev/nvmf/host/nvmf.c
+++ b/sys/dev/nvmf/host/nvmf.c
@@ -1237,6 +1237,9 @@
case NVME_GET_CONTROLLER_DATA:
memcpy(arg, sc->cdata, sizeof(*sc->cdata));
return (0);
+ case DIOCGIDENT:
+ nvme_cdata_get_disk_ident(sc->cdata, (uint8_t *)arg);
+ return (0);
case NVMF_RECONNECT_PARAMS:
nv = (struct nvmf_ioc_nv *)arg;
return (nvmf_reconnect_params(sc, nv));
diff --git a/sys/dev/nvmf/host/nvmf_ns.c b/sys/dev/nvmf/host/nvmf_ns.c
--- a/sys/dev/nvmf/host/nvmf_ns.c
+++ b/sys/dev/nvmf/host/nvmf_ns.c
@@ -278,6 +278,9 @@
sizeof(gnsid->cdev));
gnsid->nsid = ns->id;
return (0);
+ case DIOCGIDENT:
+ nvme_cdata_get_disk_ident(ns->sc->cdata, (uint8_t *)arg);
+ return (0);
case DIOCGMEDIASIZE:
*(off_t *)arg = ns->size;
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 10:16 AM (6 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28445553
Default Alt Text
D53339.1777371364.diff (834 B)
Attached To
Mode
D53339: nvmf: Add support for DIOCGIDENT
Attached
Detach File
Event Timeline
Log In to Comment