Sujet : Re: Shutdown - 25 Years Later
De : Pancho.Jones (at) *nospam* protonmail.com (Pancho)
Groupes : comp.os.linux.miscDate : 20. Apr 2025, 12:28:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vu2lpn$3mfun$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 4/20/25 08:13, Richard Kettlewell wrote:
In short there’s no number of syncs that will guarantee your data is all
actually on disk.
Out of idle curiosity, what will guarantee all pending writes are flushed to disk, apart from shutdown/reboot?
I seem to remember (from decades back) the actual advice was:
$ sync; sleep 10;
Or some suitable sleep period, rather than multiple sync;
I kind of accepted that in my sloppier younger days, but it seems a bit naff. Is it even possible to ensure all disk writes have actually physically been persisted on the disk. If they can do it for shutdown, presumably this is some method, some acknowledgement?