1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

polldaemon: prepare wrapper poll_daemon function

with lvmpolld we'll have two polldaemon implementations
This commit is contained in:
Ondrej Kozina 2015-03-17 18:31:41 +01:00
parent 65623b63a2
commit 3929b00466

View File

@ -1,6 +1,6 @@
/*
* 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.
*
@ -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
* if it was requested.
*/
int poll_daemon(struct cmd_context *cmd, const char *name, const char *uuid,
unsigned background,
uint64_t lv_type, struct poll_functions *poll_fns,
static 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)
{
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);
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);
}