On 5/19/22 9:39 AM, Tao Liu wrote:
> I'm not aware of any "fsync" shell command,
unfortunately. It'd be nice.
>
Since we are programming in pure shell script, it would be strange if
we insert a c program which call fsync on vmcore specifically for the
purpose, is there any best practice on how to achieve this?
Yes...
Thanks,
Tao Liu
> sync -f syncs the filesystem of the target file, not just the file itself -
> but that's fine. [1]
^^^^ this.
-Eric
> so sync -f vmcore should be fine, will sync only the filesystem
hosting vmcore,
> and should return an error if it fails. [2]
>
> -Eric