Re: [U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-09 Thread Alex Kiernan
On Fri, Mar 9, 2018 at 10:03 AM, Stefano Babic wrote: > On 09/03/2018 10:54, Alex Kiernan wrote: >> On Thu, Mar 8, 2018 at 5:04 PM, Stefano Babic wrote: >>> Hi alex, >>> >>> On 08/03/2018 12:52, Alex Kiernan wrote: If the U-Boot environment is stored in a

Re: [U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-09 Thread Stefano Babic
On 09/03/2018 10:54, Alex Kiernan wrote: > On Thu, Mar 8, 2018 at 5:04 PM, Stefano Babic wrote: >> Hi alex, >> >> On 08/03/2018 12:52, Alex Kiernan wrote: >>> If the U-Boot environment is stored in a regular file and redundant >>> operation isn't set, then write to a temporary

Re: [U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-09 Thread Alex Kiernan
On Thu, Mar 8, 2018 at 5:04 PM, Stefano Babic wrote: > Hi alex, > > On 08/03/2018 12:52, Alex Kiernan wrote: >> 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. >> > > Even

Re: [U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-08 Thread Stefano Babic
Hi alex, On 08/03/2018 12:52, Alex Kiernan wrote: > 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. > Even if it is not explicitely set (IMHO it should), this code can be used as library

[U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-08 Thread Alex Kiernan
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 --- tools/env/fw_env.c | 81 -- 1 file