Skip to content

Conversation

wy-chung
Copy link
Contributor

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.

Copy link

github-actions bot commented Jul 23, 2025

Thank you for taking the time to contribute to FreeBSD!
There is an issue that needs to be fixed:

  • Missing Signed-off-by linesdfe0711

Please review CONTRIBUTING.md, then update and push your branch again.

@markjdb
Copy link
Member

markjdb commented Jul 25, 2025

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.

Copy link
Member

@bsdjhb bsdjhb left a 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.
@bsdjhb
Copy link
Member

bsdjhb commented Jul 28, 2025

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.

Copy link
Member

@bsdjhb bsdjhb left a comment

Choose a reason for hiding this comment

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

Thanks!

freebsd-git pushed a commit that referenced this pull request Sep 5, 2025
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
freebsd-git pushed a commit that referenced this pull request Sep 5, 2025
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.

3 participants