The volume manager implementation for BSD derived systems (FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, etc.) allows to implement all aspects of the currently planned volume manager interface. It's used to test and verify that the volume manager interface is complete and working.
Created attachment 255 Volume manager BSD header file Header for the BSD implementation of the volume manager interface, based on the current requirements list.
Created attachment 256 Volume manager BSD source file Source for the BSD implementation of the volume manager interface, based on the current requirements list.
More or less finished now. Maybe we can try to be smarter with mount points, for example if vfs.usermount is set and the real mount point is not owned by us, we could try to create a temporary directory (~/.local/media/<device>), and mount the device there (though we'll need to extract the details from fstab by hand). In addition, we could talk to devd to stay informed about new devices plugged into the computer.
It's available for FreeBSD in thunar-vfs-freebsd.{c,h} for a long time now.