Import Unix implementation of V1.BLOCK_DEVICE

The functions have been derived from the ocaml-fat driver.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>