toybox: mount: Support multiple fs-types/mountpoint

For better or worse, Android supports multiple fstab entries for the
same mount point.  The original commit in system/core/fs_mgr was "to
allow quick experimentation between different FSes" but it was later
used in released builds for shipping devices.

So, in one-argument invocations (eg. mount /foo), continue iterating
the fstab when mount(2) returns EINVAL.  Two-argument invocations
already iterate all supported filesystems, so no change is needed
for that case.

Change-Id: I7bfac8fbbdab5016f88b398ca3c37c360bec52dc
1 file changed