Skip to content
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

lvm: Add support for reading lvm.conf #1091

Merged

Conversation

vojtechtrefny
Copy link
Member

Just a simple API using the lvmconfig command.

Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

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

Just a couple of suggestions, looks good anyway.

src/lib/plugin_apis/lvm.api Outdated Show resolved Hide resolved
*
* Tech category: %BD_LVM_TECH_CONFIG no mode (it is ignored)
*/
gchar* bd_lvm_config_get (const gchar *section, const gchar *setting, const gchar *type, gboolean values_only, gboolean global_config, const BDExtraArg **extra, GError **error) {
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm wouldn't it be better to move this to someting like lvm-common.c and link it in the both plugins? Seems like a pure 1:1 copy-paste.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, there are more functions like this already, someone should do something about it :-)

Just a simple API using the lvmconfig command.
@vojtechtrefny vojtechtrefny merged commit de9ecdb into storaged-project:master Jan 31, 2025
42 of 46 checks passed
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.

2 participants