Skip to content

MmFile.flush is broken on windows #10774

Open
Open
@Temtaime

Description

@Temtaime

https://github.com/dlang/phobos/blob/master/std/mmfile.d#L424

flush does not call FlushFileBuffers therefore does not really flush.

https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-flushviewoffile:

To flush all the dirty pages plus the metadata for the file and ensure that they are physically written to disk, call FlushViewOfFile and then call the [FlushFileBuffers](https://learn.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-flushfilebuffers) function.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions