Flush disk write cache

后端 未结 6 1211
天涯浪人
天涯浪人 2020-12-17 02:18

When the policy for a disk in Windows XP and Vista is set to enable write caching on the hard disk, is there a way to flush a file that has just been written, and ensure tha

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 02:57

    From the microsoft documents you would use _flushall and link in COMMODE.OBJ to ensure that all buffers were committed to disk.

提交回复
热议问题