A collegue fo mine had the problem that it was possible to
vnconfig -u a vn device that was currently in use. This strikes
me as odd.
When looking through the da device code, I notice a similar problem.
Suppose I have a zip fdisk mounted with a disklabel and 2
ufs partitions on it. When I mount both partitions, the disk
will be locked. But it will be unlocked at the first unmount.
I guess there should be a refcounter that keeps track of
the amount of opens and only unlock devices at the last close.

Same for vn.c.

Any comments?

-Guido


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to