Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144542936
D14483.1775325816.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14483.1775325816.diff
View Options
Index: head/sysutils/smartmontools/files/patch-freebsd__nvme__ioctl.h
===================================================================
--- head/sysutils/smartmontools/files/patch-freebsd__nvme__ioctl.h
+++ head/sysutils/smartmontools/files/patch-freebsd__nvme__ioctl.h
@@ -0,0 +1,13 @@
+--- freebsd_nvme_ioctl.h.orig 2017-09-20 10:34:38.000000000 -0700
++++ freebsd_nvme_ioctl.h 2018-02-22 23:04:32.250104000 -0800
+@@ -148,8 +148,10 @@
+ #include <dev/nvme/nvme.h>
+ #endif
+
++#if __FreeBSD_version < 1200058
+ #define nvme_completion_is_error(cpl) \
+ ((cpl)->status.sc != 0 || (cpl)->status.sct != 0)
++#endif
+
+ #define NVME_CTRLR_PREFIX "/dev/nvme"
+ #define NVME_NS_PREFIX "ns"
Index: head/sysutils/smartmontools/files/patch-os__freebsd.cpp
===================================================================
--- head/sysutils/smartmontools/files/patch-os__freebsd.cpp
+++ head/sysutils/smartmontools/files/patch-os__freebsd.cpp
@@ -1,6 +1,14 @@
---- os_freebsd.cpp.orig 2017-04-24 16:34:16 UTC
-+++ os_freebsd.cpp
-@@ -484,7 +484,7 @@ bool freebsd_nvme_device::open()
+--- os_freebsd.cpp.orig 2017-04-24 09:34:16.000000000 -0700
++++ os_freebsd.cpp 2018-02-22 23:01:44.118712000 -0800
+@@ -15,6 +15,7 @@
+ *
+ */
+
++#include <sys/param.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <dirent.h>
+@@ -484,7 +485,7 @@
}
nsid = 0xFFFFFFFF; // broadcast id
}
@@ -9,3 +17,16 @@
&ctrlid, &nsid, &tmp) == 2)
{
if(ctrlid < 0 || nsid < 0) {
+@@ -521,7 +522,11 @@
+ struct nvme_pt_command pt;
+ memset(&pt, 0, sizeof(pt));
+
+- pt.cmd.opc = in.opcode;
++#if __FreeBSD_version >= 1200058
++ pt.cmd.opc_fuse = NVME_CMD_SET_OPC(in.opcode);
++#else
++ pt.cmd.opc_fuse = in.opcode;
++#endif
+ pt.cmd.nsid = in.nsid;
+ pt.buf = in.buffer;
+ pt.len = in.size;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 6:03 PM (28 m, 44 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28260741
Default Alt Text
D14483.1775325816.diff (1 KB)
Attached To
Mode
D14483: Fix sysutils/smartmontools following Sr329824
Attached
Detach File
Event Timeline
Log In to Comment