Implement more API operations in megafs