]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: env: Implement atomic replace for filesystem
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 9 Mar 2018 12:13:02 +0000 (12:13 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 19 Mar 2018 20:14:19 +0000 (16:14 -0400)
commitdbc34323796bfc37116a7a28e93bcc5bea5fb136
tree3370a29bbb59a2db130bd84ee5b3f136867bcc76
parent899b5338fa695e4bb399b01861624f658e09174f
tools: env: Implement atomic replace for filesystem

If the U-Boot environment is stored in a regular file and redundant
operation isn't set, then write to a temporary file and perform an
atomic rename.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
tools/env/fw_env.c