On 2017/01/06 15:36, Franco Fichtner wrote: > Hi Ted, > > Thanks, this is very helpful. Don't mind exploring other > routes as long as they are sustainable within OpenBSD, e.g. > if kernel changes are needed that they are provided by the > standard kernel eventually. > > > On 3 Jan 2017, at 9:44 PM, Ted Unangst <t...@tedunangst.com> wrote: > > > > Timo Buhrmester wrote: > >>> delete [vnd] entirely > >> Out of curiosity (I'm mostly a NetBSD user), without vnd what would be > >> the OpenBSD-way of providing a disk-ish interface to a file? > > > > Well, the biggest use of vnd in base was just replaced with the makefs. > > (from > > netbsd, actually.) vnd isn't going to be deleted, but it's pretty easy to > > make a vscsi provider that talks to a file. If i had a pressing need to > > mount > > compressed disk images, I'd start there. (I had some code for this, but it's > > in another castle. It's pretty short, only like 20 lines anyway.) > > > Can you give just a little more pointers or the code if it > can be rescued? Or specifically, is this something that needs > to be added in the kernel or is it portable in userland? > > > Cheers, > Franco
Userland. vscsi is very roughly something like a scsi equivalent of tun. For example OpenBSD's iSCSI implementation iscsid(8) is userland and uses this to interface with the kernel (this has quite a lot more code than Ted's suggestion though).