Re: CVS commit: src/sbin/umount

[email protected] (Michael van Elst) Sun, 30 Mar 2025 04:50:57 -0000 (UTC)
Newsgroups gmane.os.netbsd.devel.userlevel
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (David Holland) writes:

>But that's a backwards argument anyway. The point is that a vnd is a
>shim whose purpose is to work around a weakness in the system
>interfaces. (Namely, that you can't mount a fs image in a regular
>file.) It has no state, and no semantics of its own either; it's just
>a plug.

It adds some disk semantics to a file.


>It is perfectly reasonable for mount to create a vnd automatically
>when you ask it to mount an image that's a regular file, and dispose
>of it equally automatically later.

Assuming that some default or fabricated disk semantics are sufficient
for the task.