common/win32,dokan: include bcrypt.h for NTSTATUS #47217
Merged
Conversation
14 tasks
Contributor
Author
adamemerson
approved these changes
Jul 21, 2022
Contributor
Author
|
Contributor
Author
|
jenkins test windows |
Contributor
Author
|
Contributor
Author
|
needs to address the test failure first. |
Contributor
Author
|
jenkins test make check |
Contributor
Author
|
@adamemerson i fixed the test. could you please take another look? |
1e2b086 to
6389ee0
Compare
3815da6 to
cb9f789
Compare
to avoid the conflicting declaration of NTSTATUS from bcrypt.h and our
own typedef. as after switching to boost 1.79, we would have following compiling
failure:
In file included from ../src/dokan/options.cc:14:
../src/dokan/ceph_dokan.h:16:15: error: conflicting declaration 'typedef DWORD NTSTATUS'
16 | typedef DWORD NTSTATUS;
| ^~~~~~~~
In file included from ../build.deps/mingw/boost/include/boost/asio/impl/connect_pipe.ipp:29,
from ../build.deps/mingw/boost/include/boost/asio/connect_pipe.hpp:79,
from ../build.deps/mingw/boost/include/boost/asio.hpp:64,
from ../src/include/win32/winsock_wrapper.h:20,
from <command-line>:
/usr/share/mingw-w64/include/bcrypt.h:27:16: note: previous declaration as 'typedef LONG NTSTATUS'
27 | typedef LONG NTSTATUS,*PNTSTATUS;
| ^~~~~~~~
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
boost changes the way how it prints boost::system::system_error in boost 1.79 -- it appends the stringified error_category at end of exception::what(), and our buffer::malformed_input is a subclass of boost::system::system_error. so we cannot just compare the return value of what() with the expected string, to be more future proof, let's check if i starts with the expected string instead. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
so it is more compacted Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Contributor
Author
Contributor
|
@adamemerson is this still good after the force pushes? |
Contributor
Author
|
changelog
|
Contributor
Author
|
@adamemerson @djgalloway i am going to merge this change, as the latest force pushes was trivial changes. if anything looks insane, i will fix it ASAP. |
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows