Skip to content

[Windows] Adds a native windows filesystem implementation#13077

Merged
mattklein123 merged 10 commits intoenvoyproxy:masterfrom
davinci26:filesystemWin32
Sep 21, 2020
Merged

[Windows] Adds a native windows filesystem implementation#13077
mattklein123 merged 10 commits intoenvoyproxy:masterfrom
davinci26:filesystemWin32

Conversation

@davinci26
Copy link
Member

Signed-off-by: Sotiris Nanopoulos sonanopo@microsoft.com

Commit Message:

Refactor filesystem_impl to use win32 APIs instead of POSIX subsystem. Fixes issue #11655.

Additional Description:

For easier review the major changes are the following:

  1. Adds a Win32 impl
  2. Strips away the file_shared_impl because it relied on errno for error handling. This change cascades to the POSIX implementation
  3. Adds a preliminary error mapping so we don't rely on error strings.

Risk Level: Low
Testing: Already tested in filesystem_impl_test
Docs Changes: N/A
Release Notes: N/A

…entation

Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26
Copy link
Member Author

cc: @envoyproxy/windows-dev

gimme one CI run to clean up any formatting or cascading build errors

@asraa asraa requested a review from wrowe September 14, 2020 13:18
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Copy link
Contributor

@wrowe wrowe left a comment

Choose a reason for hiding this comment

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

A couple quick comments for discussion, but generally looking really good here, thanks!

Sotiris Nanopoulos added 5 commits September 16, 2020 11:10
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26
Copy link
Member Author

Attempting to bump coverage above threshold. Technically it shouldn't have been affected by the change since the code is a null-op in linux.

Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
@davinci26
Copy link
Member Author

clang-tidy fails due to #13162 that is coming from upstream

Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Copy link
Contributor

@wrowe wrowe left a comment

Choose a reason for hiding this comment

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

LGTM!

@davinci26
Copy link
Member Author

@envoyproxy/senior-maintainers can I also get a review from you.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice cleanup. Thanks!

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.

4 participants