extmod/fsusermount: Change block protocol to support ioctl method.

The new block protocol is:
- readblocks(self, n, buf)
- writeblocks(self, n, buf)
- ioctl(self, cmd, arg)

The new ioctl method handles the old sync and count methods, as well as
a new "get sector size" method.

The old protocol is still supported, and used if the device doesn't have
the ioctl method.
This commit is contained in:
Damien George 2016-02-09 14:28:50 +00:00
parent 3846fd56c1
commit c33ad60a67
4 changed files with 67 additions and 18 deletions