首页 行业资讯 宠物日常 宠物养护 宠物健康 宠物故事

Linux 拷贝大文件 sync

发布网友 发布时间: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,理论上还是会等缓存写入磁盘的啊

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com