dms uses the fd passed by dmget to save the fetched data
Also added a TODO comment about handling O_STDOUT