the bitrig master branch has been updated by natano with 1 new commit:

commit c098f5f474e40ad4f96a1f1568ff84682f9c6b15
diff: https://github.com/bitrig/bitrig/commit/c098f5f
author: Martin Natano <[email protected]>
date: Tue Jan 6 15:45:13 2015 +0100

Allow the disklabel to be read when an image is set via VNDIOCSET.

The call chain is as following: vndioctl -> disk_attach -> (workq) ->
disk_attach_callback -> disk_readlabel -> VOP_OPEN -> vndopen. In
vndopen the disklabel should be read for the coming DIOCGDINFO ioctl,
which doesn't happen because the device is still opened for the
VNDIOCSET ioctl.

This diff lets the vnd disk end up with a valid disklabel set after the
initial vnconfig call.

ok patrick@

M       sys/dev/vnd.c

Reply via email to