]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitf222ac96a5fad2d13dee29334f4180ac13fd3833
tree6f928534561fd82ad247120f1179431f07900e6a
parent6ecea1c8cfd4f09a1bea6730511aee4245c1f4d5
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