mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
polldaemon: prepare wrapper poll_daemon function
with lvmpolld we'll have two polldaemon implementations
This commit is contained in:
parent
65623b63a2
commit
3929b00466
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2003-2004 Sistina Software, Inc. All rights reserved.
|
* Copyright (C) 2003-2004 Sistina Software, Inc. All rights reserved.
|
||||||
* Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
|
* Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* This file is part of LVM2.
|
* This file is part of LVM2.
|
||||||
*
|
*
|
||||||
@ -275,9 +275,9 @@ static void _poll_for_all_vgs(struct cmd_context *cmd,
|
|||||||
* - 'background' is advisory so a child polldaemon may not be used even
|
* - 'background' is advisory so a child polldaemon may not be used even
|
||||||
* if it was requested.
|
* if it was requested.
|
||||||
*/
|
*/
|
||||||
int poll_daemon(struct cmd_context *cmd, const char *name, const char *uuid,
|
static int _poll_daemon(struct cmd_context *cmd, const char *name,
|
||||||
unsigned background,
|
const char *uuid, unsigned background, uint64_t lv_type,
|
||||||
uint64_t lv_type, struct poll_functions *poll_fns,
|
struct poll_functions *poll_fns,
|
||||||
const char *progress_title)
|
const char *progress_title)
|
||||||
{
|
{
|
||||||
struct processing_handle *handle = NULL;
|
struct processing_handle *handle = NULL;
|
||||||
@ -357,3 +357,11 @@ int poll_daemon(struct cmd_context *cmd, const char *name, const char *uuid,
|
|||||||
destroy_processing_handle(cmd, handle);
|
destroy_processing_handle(cmd, handle);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int poll_daemon(struct cmd_context *cmd, const char *name, const char *uuid,
|
||||||
|
unsigned background,
|
||||||
|
uint64_t lv_type, struct poll_functions *poll_fns,
|
||||||
|
const char *progress_title)
|
||||||
|
{
|
||||||
|
return _poll_daemon(cmd, name, uuid, background, lv_type, poll_fns, progress_title);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user