Skip to content

Conversation

@vojtechtrefny
Copy link
Member

This significantly reduces code duplication between the CLI and DBus plugin.

A lot of functions are the same in both CLI and DBus plugin.
Some of the tests recompile the plugin, we need to change some
paths for the tests to work.
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.

Very nice!

#define LVM_MIN_VERSION "2.02.116"
#define LVM_VERSION_FSRESIZE "2.03.19"

extern GMutex global_config_lock;
Copy link
Member

Choose a reason for hiding this comment

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

have you considered switching to G_LOCK_DEFINE() and static locks? G_LOCK() or G_LOCK_EXTERN()? I think GMutex is more suited for dynamic allocations.

Copy link
Member Author

Choose a reason for hiding this comment

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

Lets keep this simple and I'll take a look at the locks and deal with them in a separate PR.

@vojtechtrefny vojtechtrefny merged commit ae6e249 into storaged-project:master May 29, 2025
45 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