Add back functions for converting M to kdirents.