发布网友 发布时间:2022-04-22 04:20
共1个回答
热心网友 时间:2024-03-20 09:55
man sync
On Linux, sync is only guaranteed to schele the dirty blocks for writing; it can actually take a short time before all the blocks are
finally written. The reboot(8) and halt(8) commands take this into account by sleeping for a few seconds after calling sync(2)
但是你调用了reboot,理论上还是会等缓存写入磁盘的啊