[oe] [PATCH v2] initscripts: Modify 'populate-volatile.sh' to atomically update 'volatile.cache'

Paul Menzel paulepanter at users.sourceforge.net
Tue Jun 7 10:13:14 UTC 2011


Dear James,


thank you for the updated patch.

Am Dienstag, den 07.06.2011, 17:35 +0800 schrieb James Limbouris:
> When power is lost before a new volatile.cache has been flushed to disk,
> it can be corrupted, leaving the volatiles uncreated and causing software failure.

So the device is still booting up although the power is lost? I am still
confused how this patch can fix this. I am sorry for my ignorance.

> Using a temporary file on the same volume and renaming it avoids this issue.
> The file is sync'd before the rename to avoid problems with newer caching filesystems,
> in which the rename is atomic, but the contents of the file may not yet be flushed.
> 
> Signed-off-by: James Limbouris <james at digitalmatter.com.au>

I will commit your patch during the next days to leave some time for
others to comment/review.

> ---
>  .../initscripts-1.0/populate-volatile.sh           |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)

[…]


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110607/499bfaa9/attachment-0002.sig>


More information about the Openembedded-devel mailing list