Skip to content

Don't reject WinFSP file attributes the VFS can't represent#234

Merged
EdSchouten merged 1 commit into
buildbarn:mainfrom
tomgr:winfsp-discard-errors
Jun 14, 2026
Merged

Don't reject WinFSP file attributes the VFS can't represent#234
EdSchouten merged 1 commit into
buildbarn:mainfrom
tomgr:winfsp-discard-errors

Conversation

@tomgr

@tomgr tomgr commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

toVirtualAttributes returned STATUS_INVALID_PARAMETER for any attribute that was unsupported. However, given that Windows sets FILE_ATTRIBUTE_ARCHIVE on an ordinary CREATE_ALWAYS, that meant propagating the error would fail normal file creation (the winfsp-tests create_test covers this).

Instead we now ignore attributes the VFS can't represent, and instead only return errors when we know there is something incorrect.

toVirtualAttributes returned STATUS_INVALID_PARAMETER for any attribute
that was unsupported. However, given that Windows sets
FILE_ATTRIBUTE_ARCHIVE on an ordinary CREATE_ALWAYS, that meant
propagating the error would fail normal file creation (the winfsp-tests
create_test covers this).

Instead we now ignore attributes the VFS can't represent, and instead
only return errors when we know there is something incorrect.
@EdSchouten EdSchouten merged commit f2aafec into buildbarn:main Jun 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants