1
0
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:
Ondrej Kozina 2015-04-10 16:36:50 +02:00
parent 81c038934c
commit 7fca7f196d
2 changed files with 6 additions and 3 deletions

View File

@ -158,8 +158,8 @@ 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,
struct daemon_parms *parms)
int wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id,
struct daemon_parms *parms)
{
struct volume_group *vg;
struct logical_volume *lv;
@ -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;
}

View File

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