Skip to content

Commit fc1e12d

Browse files
committed
POC: zfs_tray.exe
Simple zfs_tray.exe, and service zed_service.exe that it communicates with over a named-pipe. Uses libzfs to produce results in json form, then using libnvpair_json.c and our wrapper for unopen() to print the results to a string. Signed-off-by: Jorgen Lundman <lundman@lundman.net>
1 parent bc78a06 commit fc1e12d

22 files changed

Lines changed: 2452 additions & 9 deletions

cmd/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ add_subdirectory(zdb)
1010
add_subdirectory(zstream)
1111
add_subdirectory(os/windows/kstat)
1212
add_subdirectory(os/windows/zfsinstaller)
13+
add_subdirectory(os/windows/zed_service)
14+
add_subdirectory(os/windows/zfs_tray)
1315
add_subdirectory(raidz_test)
1416
add_subdirectory(zinject)
1517
add_subdirectory(zed)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
use_clang()
3+
4+
um_add_executable(zed_service
5+
zed_service.c
6+
ops_status.c
7+
# resource.rc
8+
)
9+
10+
target_include_directories(zed_service PRIVATE
11+
"${CMAKE_SOURCE_DIR}/cmd/os/windows/zed_service"
12+
# "${CMAKE_SOURCE_DIR}/lib/libspl/include/os/windows" # soon
13+
# "${CMAKE_SOURCE_DIR}/lib/libspl/include" # soon
14+
# "${CMAKE_SOURCE_DIR}/lib/os/windows" # maybe
15+
"${CMAKE_SOURCE_DIR}/include"
16+
)
17+
18+
target_link_libraries(zed_service PRIVATE
19+
advapi32
20+
libnvpair
21+
libspl
22+
libzpool
23+
libzfs
24+
# libspl # soon
25+
)
26+
27+
install(TARGETS zed_service RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
28+
install(FILES $<TARGET_PDB_FILE:zed_service>
29+
DESTINATION "${CMAKE_INSTALL_BINDIR}"
30+
OPTIONAL
31+
)
32+

0 commit comments

Comments
 (0)