openzfsonwindows / ZFSin

OpenZFS on Windows port
https://openzfsonwindows.org
1.2k stars 69 forks source link

assign targetId and lun to zvol after it is open #342

Closed datacore-rm closed 2 years ago

datacore-rm commented 2 years ago

As discussed in issue https://github.com/openzfsonwindows/ZFSin/issues/341, created the PR for the changes.

Issue: TargetId and Lun is created for zvol before it is fully open.

Changes:- Moved the assign to after the zvol_open_impl() call.