summaryrefslogtreecommitdiff
path: root/daemons/lvmpolld/lvmpolld-protocol.h
blob: 1f0d6a6baf290d78332a3a78f66c9a827ca6ee21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Copyright (C) 2015 Red Hat, Inc.
 *
 * This file is part of LVM2.
 *
 * This copyrighted material is made available to anyone wishing to use,
 * modify, copy, or redistribute it subject to the terms and conditions
 * of the GNU Lesser General Public License v.2.1.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef _LVM_LVMPOLLD_PROTOCOL_H
#define _LVM_LVMPOLLD_PROTOCOL_H

#include "polling_ops.h"

#define LVMPOLLD_PROTOCOL "lvmpolld"
#define LVMPOLLD_PROTOCOL_VERSION 1

#define LVMPD_REQ_CONVERT	CONVERT_POLL
#define LVMPD_REQ_DUMP		"dump"
#define LVMPD_REQ_MERGE		MERGE_POLL
#define LVMPD_REQ_MERGE_THIN	MERGE_THIN_POLL
#define LVMPD_REQ_PROGRESS	"progress_info"
#define LVMPD_REQ_PVMOVE	PVMOVE_POLL

#define LVMPD_PARM_ABORT		"abort"
#define LVMPD_PARM_HANDLE_MISSING_PVS	"handle_missing_pvs"
#define LVMPD_PARM_INTERVAL		"interval"
#define LVMPD_PARM_LVID			"lvid"
#define LVMPD_PARM_LVNAME		"lvname"
#define LVMPD_PARM_SYSDIR		"sysdir"
#define LVMPD_PARM_VALUE		"value" /* either retcode or signal value */
#define LVMPD_PARM_VGNAME		"vgname"

#define LVMPD_RESP_FAILED	"failed"
#define LVMPD_RESP_FINISHED	"finished"
#define LVMPD_RESP_IN_PROGRESS	"in_progress"
#define LVMPD_RESP_EINVAL	"invalid"
#define LVMPD_RESP_NOT_FOUND	"not_found"
#define LVMPD_RESP_OK		"OK"

#define LVMPD_REAS_RETCODE	"retcode" /* lvm cmd ret code */
#define LVMPD_REAS_SIGNAL	"signal" /* lvm cmd terminating singal */

#define LVMPD_RET_DUP_FAILED	100
#define LVMPD_RET_EXC_FAILED	101

#endif /* _LVM_LVMPOLLD_PROTOCOL_H */