zfs --version output #419
Replies: 5 comments 5 replies
-
zfs/zpool version gives a reference ex to 2.2.6 or If you need to detect if ZFS is running under Windows, use On Windows you get the driveletter value, on another platform an error "invalid property" |
Beta Was this translation helpful? Give feedback.
-
Ok, but does zfs --version by any chance contain "winzfs" or some unique blurb like that? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The Microsoft Windows [Version 10.0.19044.3086]
(c) Microsoft Corporation. All rights reserved.
C:\Users\saukrs> sudo zfs --version
zfswin-2.2.3rc5
zfs-kmod-zfswin-2.2.3rc5
C:\Users\saukrs> |
Beta Was this translation helpful? Give feedback.
-
BTW, I have no idea if this works, as last time I used windows was ages ago, and I really don't know my way round there anymore (please be kind). But just in case it might be useful to someone, I made some tentative changes to bzfs to (maybe) make snapshot replication from windows to Unix work with zfs on windows. It uses that zfswin blurb as identifier and runs zfs.exe with sudo if that's available per the comment above. See this experimental branch here: https://github.com/whoschek/bzfs/tree/wip/zfswin Give it a shot if you like, if only to test the new zfs send/receive bits on windows. You'd need to run the initiator on a Unix machine, and have an openssh server on windows, but with some luck it might actually work. |
Beta Was this translation helpful? Give feedback.
-
Can someone please show me an example output blurb of zfs --version on Windows on their machine. I'm trying to figure out how best to detect if the zfs version on the remote side is running on windows, as opposed to another OS. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions