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
|
/*
* Copyright (C) 2014 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.
*/
#ifndef _DLOCK_H
#define _DLOCK_H
#ifdef LVMLOCKD_SUPPORT
int dlock_gl_create(struct cmd_context *cmd, const char *def_mode, uint32_t flags,
const char *vg_lock_type);
int dlock_gl(struct cmd_context *cmd, const char *def_mode, uint32_t flags);
#else /* LVMLOCKD_SUPPORT */
#define dlock_gl_create(cmd, def_mode, flags, vg_lock_type) (1)
#define dlock_gl(cmd, def_mode, flags) (1)
#endif /* LVMLOCKD_SUPPORT */
#endif
|