http://mbed.org/users/mbed_official/code/FATFileSystem/#3ff2606d5713