Merge changes I060f438c,I48fbca45

* changes:
  fastbootd: use O_DIRECT for write partition
  fastbootd: allow passage of flags to open partition