tools/fw_env: use fsync to ensure that data is physically stored
authorMichael Heimpold <mhei@heimpold.de>
Mon, 20 May 2013 19:34:42 +0000 (21:34 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 22 Jul 2017 19:36:16 +0000 (15:36 -0400)
commit7e99e14d4ba2533a07adc3d97e06cadc41d12908
tree6f928534561fd82ad247120f1179431f07900e6a
parentaae6f016a7928edc79dff78d1235103fff282a34
tools/fw_env: use fsync to ensure that data is physically stored

Closing a file descriptor does not guarantee that the data has been
successfully saved to disk, as the kernel might defer the write.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
tools/env/fw_env.c