-
Notifications
You must be signed in to change notification settings - Fork 3.1k
GEOM: add a new function g_new_geom #1786
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for taking the time to contribute to FreeBSD!
Please review CONTRIBUTING.md, then update and push your branch again. |
We should avoid modifying openzfs code, since that comes from its own upstream. There is a style bug in g_new_geom()--could you please fix it? With that, this commit is fine to merge. |
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.
I would maybe split this into two commits: one to add the new function, and one to convert existing callers to using it. Also, the first commit should include changes to the share/man/man9/g_geom.9 manpage to add the new function.
This function is a variant of g_new_geomf. It accepts a regular string instead of a format string as its input parameter. It can save the time wasted on unnecessary format string processing.
The first commit here looks good to me. Adding a second commit to convert existing callers that didn't need formatting as was done in the original PR would be nice to have as well. |
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.
Thanks!
This function is a variant of g_new_geomf. It accepts a regular string instead of a format string as its input parameter. It can save the time wasted on unnecessary format string processing. Reviewed by: imp Pull Request: #1786
…_geomf Reviewed by: imp Pull Request: #1786
…_geomf Signed-off-by: Wuyang Chung <[email protected]>
e4b9771
to
f6322ee
Compare
This function accepts a regular string as its input string so the callers calling this function can save the time wasted on format string processing.