Skip to content

Use shared lock for files opened without FileAccess.Write on Linux - #44185

Merged
jozkee merged 4 commits into
dotnet:masterfrom
jozkee:fs_lock_unix
Nov 5, 2020
Merged

jozkee merged 4 commits into
dotnet:masterfrom
jozkee:fs_lock_unix

Conversation

@jozkee

@jozkee jozkee commented Nov 3, 2020

Copy link
Copy Markdown
Member

Fixes #29173

@jozkee jozkee added this to the 6.0.0 milestone Nov 3, 2020
@jozkee jozkee self-assigned this Nov 3, 2020
@jozkee jozkee changed the title Use shared lock for files opened with FileAccess.Read on Linux Use shared lock for files opened without FileAccess.Write on Linux Nov 3, 2020

@carlossanlop carlossanlop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left a question to consider.

@stephentoub stephentoub added the breaking-change Issue or PR that represents a breaking API or functional change over a previous release. label Nov 4, 2020
@ghost ghost added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Nov 4, 2020
@jozkee
jozkee merged commit 5e5c4eb into dotnet:master Nov 5, 2020
@jozkee
jozkee deleted the fs_lock_unix branch November 5, 2020 00:32
@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2020
@carlossanlop

Copy link
Copy Markdown
Contributor

Breaking change documented with: dotnet/docs#26529

@carlossanlop carlossanlop removed the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IO breaking-change Issue or PR that represents a breaking API or functional change over a previous release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileStream.Lock(Int64, Int64) failure on Linux - always uses 'F_WRLCK'.

3 participants