Skip to content
Commit b84bab36 authored by Miika Karanki's avatar Miika Karanki Committed by Henrik Brix Andersen
Browse files

settings: file: do not unlink the settings file unnecessarily



fs_rename can handle the file move atomically without unlinking
the file first if the filesystem supports that. This change makes
the settings file more power cut resilient so that the whole
settings file is not lost with poorly timed power cut.

Signed-off-by: default avatarMiika Karanki <miika.karanki@vaisala.com>
parent 3a1e179c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment