Skip to content

FileStream locks on Unix - #26539

Merged
gewarren merged 3 commits into
dotnet:mainfrom
gewarren:file-lock
Oct 29, 2021
Merged

gewarren merged 3 commits into
dotnet:mainfrom
gewarren:file-lock

Conversation

@gewarren

@gewarren gewarren commented Oct 15, 2021 •

Copy link
Copy Markdown
Collaborator

Fixes #26529

Preview

@gewarren
gewarren requested review from a team and carlossanlop October 29, 2021 18:42

@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.

Some minor suggestions.

@@ -0,0 +1,50 @@
---
title: "Breaking change: FileStream locks files with shared lock on Unix"
description: Learn about the .NET 6 breaking change where FileStream.Lock now locks files with a read lock when they're opened with read permissions on Unix.

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.

Should this FileStream.Lock mentioned in the description be wrapped by an xref or cref?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No, it's just metadata so I don't think such links would resolve.

@gewarren
gewarren merged commit 4804bd5 into dotnet:main Oct 29, 2021
@gewarren
gewarren deleted the file-lock branch October 29, 2021 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: On Linux, opening a file without FileAccess.Write then locking it, will now lock it with a shared lock

3 participants