Skip to content

FileStream position is not updated when sync write partially succeeds #127854

@tmds

Description

@tmds

For async operations, FileStream position is updated if a write is only partial. For example:

For sync operations, if the write succeeds only partially the position on the FileStream is not updated:

RandomAccess.WriteAtOffset(_fileHandle, buffer, _filePosition);
_filePosition += buffer.Length;

cc @adamsitnik

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IOuntriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions