[U-Boot] [PATCH] tools/fw_env: use fsync to ensure that data is physically stored

Wolfgang Denk wd at denx.de
Tue May 21 14:47:23 CEST 2013


Dear Michael Heimpold,

In message <1369078482-5863-1-git-send-email-mhei at heimpold.de> you wrote:
> Closing a file descriptor does not guarantee that the data has been
> successfully saved to disk, as the kernel might defer the write.

What is the exact problem you are trying to fix?

I mean, when exactly does adding the sync play a role?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Old programmers never die, they just branch to a new address.


More information about the U-Boot mailing list