Copy from meshblu-fs