mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +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,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,
|
int wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||||
struct daemon_parms *parms)
|
struct daemon_parms *parms)
|
||||||
{
|
{
|
||||||
struct volume_group *vg;
|
struct volume_group *vg;
|
||||||
struct logical_volume *lv;
|
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?
|
* Process one specific task or all incomplete tasks?
|
||||||
*/
|
*/
|
||||||
if (id) {
|
if (id) {
|
||||||
if (!_wait_for_single_lv(cmd, id, parms)) {
|
if (!wait_for_single_lv(cmd, id, parms)) {
|
||||||
stack;
|
stack;
|
||||||
ret = ECMD_FAILED;
|
ret = ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
@ -87,4 +87,7 @@ struct logical_volume *poll_get_copy_lv(struct cmd_context *cmd,
|
|||||||
const char *name, const char *uuid,
|
const char *name, const char *uuid,
|
||||||
uint64_t lv_type);
|
uint64_t lv_type);
|
||||||
|
|
||||||
|
int wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||||
|
struct daemon_parms *parms);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user