fix in directio zm implementation and other things

Change-Id: I80b7faa1ca8594eb23e68f548c1e7a7fecc1fc18