Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154290851
D24202.id69916.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
578 B
Referenced Files
None
Subscribers
None
D24202.id69916.diff
View Options
Index: usr.sbin/bhyve/pci_nvme.c
===================================================================
--- usr.sbin/bhyve/pci_nvme.c
+++ usr.sbin/bhyve/pci_nvme.c
@@ -449,10 +449,13 @@
static void
pci_nvme_init_logpages(struct pci_nvme_softc *sc)
{
-
memset(&sc->err_log, 0, sizeof(sc->err_log));
memset(&sc->health_log, 0, sizeof(sc->health_log));
memset(&sc->fw_log, 0, sizeof(sc->fw_log));
+ // Initial important healthy data.
+ sc->health_log.temperature = 310;
+ sc->health_log.available_spare= 100;
+ sc->health_log.available_spare_threshold= 10;
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 3:42 PM (2 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32288746
Default Alt Text
D24202.id69916.diff (578 B)
Attached To
Mode
D24202: bhyve: Initial some NVMe controller health log data.
Attached
Detach File
Event Timeline
Log In to Comment