Skip to content

Conversation

@smx-smx
Copy link
Contributor

@smx-smx smx-smx commented Nov 25, 2023

Details in #95096

@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-System.IO labels Nov 25, 2023
@ghost
Copy link

ghost commented Nov 25, 2023

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

Details in #95096

Author: smx-smx
Assignees: -
Labels:

area-System.IO, community-contribution

Milestone: -

According to MS-FSCC, "a value of -1 indicates to the server that it MUST NOT change this attribute for all subsequent operations"
This behavior is incorrect in the scope of .NET, since a call to File.SetLastAccessTime on a open file handle
will cause all future writes to not update the last write tim.

It also triggers STATUS_INVALID_PARAMETER on NFS, since the Windows driver doesn't seem to implement the -1 value (tracking of subsequent write operations)

Fixes dotnet#95096
Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

@smx-smx thank you very much for your contribution!

@adamsitnik adamsitnik merged commit 721c445 into dotnet:main Nov 27, 2023
@adamsitnik adamsitnik added this to the 9.0.0 milestone Nov 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IO community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants