> On 27 Aug 2024, at 09:55, Viacheslav Volkov via lists.openembedded.org 
> <[email protected]> wrote:
> +if [ -z "$ROOT_DIR" ]; then
> + SYNC_CMD="sync" # on target run sync
> +else
> + # At rootfs time sync is not required. Moreover sync symlink is not
> + # present in ${TMPDIR}/hosttools directory while building rootfs, hence
> + # attempting to execute sync would cause a silent error (further
> + # commands won't be executed).
> + SYNC_CMD="true"
> +fi

Doing a sync for _every_ file created seems like overkill, and if you’re doing 
atomic creation is it even useful? The correct file will exist or not exist: 
what does a sync add?

(also: it’s power-cut safe, not save)

Thanks,
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#204447): 
https://lists.openembedded.org/g/openembedded-core/message/204447
Mute This Topic: https://lists.openembedded.org/mt/108119948/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to