Skip to content

Updating version of OpenZFS-on-Windows #287

Answered by lundman
sskras asked this question in General
Discussion options

You must be logged in to vote

If anyone wants to attempt this, an outline would be:


level 1:
Update zfsinstaller.exe, which is a separate minitool in this repo. It is not connected to ZFS at all, and more of a pure Windows tool. C++ ?

https://github.com/openzfsonwindows/openzfs/tree/windows/cmd/os/windows/zfsinstaller

  • Execute zpool.exe export -a. Either by literally executing zpool.exe, or if preferred, link with libzpool.a and duplicate with it does internally:
	return (for_each_pool(argc, argv, B_TRUE, NULL,
		    ZFS_TYPE_POOL, B_FALSE, zpool_export_one, &cb));

If zpool.exe export -a fails, stop. print error.

Then let zfsinstaller.exe continue, it will issue UNLOAD to openzfs.sys and unload. Exit. There may nee…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sskras
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #266 on October 12, 2023 00:35.