Skip to content

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.

*
* 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