mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
polldaemon: make wait_for_single_lv public
referenced by new lvpoll command after lvmpolld gets merged.
This commit is contained in:
parent
81c038934c
commit
7fca7f196d
@ -158,7 +158,7 @@ static void _sleep_and_rescan_devices(struct daemon_parms *parms)
|
||||
}
|
||||
}
|
||||
|
||||
static int _wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||
int wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||
struct daemon_parms *parms)
|
||||
{
|
||||
struct volume_group *vg;
|
||||
@ -392,7 +392,7 @@ static int _poll_daemon(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||
* Process one specific task or all incomplete tasks?
|
||||
*/
|
||||
if (id) {
|
||||
if (!_wait_for_single_lv(cmd, id, parms)) {
|
||||
if (!wait_for_single_lv(cmd, id, parms)) {
|
||||
stack;
|
||||
ret = ECMD_FAILED;
|
||||
}
|
||||
|
@ -87,4 +87,7 @@ struct logical_volume *poll_get_copy_lv(struct cmd_context *cmd,
|
||||
const char *name, const char *uuid,
|
||||
uint64_t lv_type);
|
||||
|
||||
int wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||
struct daemon_parms *parms);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user