Most in-tree filesystems support both mount(2) and nmount(2). The
mount(2) API is difficult to translate for non-native ABIs (e.g.,
freebsd32). It is also nearly unused in the base system (amd(8) is the
only consumer).
This change adds translations from the mount(2) API to the nmount(2)
API for known filesystems. Where a translation is unavailable, it
falls back to calling the mount(2) system call.
This is intended to be a step towards allow new ABIs to not support
mount(2) while retaining most functionality.
This patch was developed by (Oleg Derevenetz) with review and minor
changes by me.