-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve compatibility with C++ consumers #10409
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10409 +/- ##
==========================================
- Coverage 79.45% 79.37% -0.09%
==========================================
Files 391 391
Lines 123625 123625
==========================================
- Hits 98230 98131 -99
- Misses 25395 25494 +99
Continue to review full report at Codecov.
|
I have this commit lined up for a PR: there's probably a fair bit of overlap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Let's just verify that this PR covers everything that in @lundman's commit.
C++ is a little picky about not using keywords for names, or string constness. Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
|
I replaced my commit with yours;
Updated lib/libzfs/os/macos/libzfs_pool_os.c - to add const. All compiled - takes care of my needs, cheers. |
That dang zpool_import_012 sure is stubborn :| |
C++ is a little picky about not using keywords for names, or string constness. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#10409
C++ is a little picky about not using keywords for names, or string constness. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10409
C++ is a little picky about not using keywords for names, or string constness. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#10409
C++ is a little picky about not using keywords for names, or string constness. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#10409
Motivation and Context
FreeBSD has zfsd, which serves a similar purpose as zed. This program is written in C++.
C++ is a little picky about silly things like not using keywords for names and string const correctness.
Description
Mostly changed things in headers to rename parameters from class to clazz and private to priv.
One struct had a member named private which has been renamed to priv, and that required touching some .c files.
Corrected the constness of the name parameter to zpool_label_disk.
How Has This Been Tested?
Ran through ZTS on FreeBSD.
Types of changes
Checklist:
Signed-off-by
.