2004-06-24 12:02:38 +04:00
#
2015-05-09 02:59:18 +03:00
# Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved.
2004-06-24 12:02:38 +04:00
#
2007-09-21 14:16:45 +04:00
# This file is part of LVM2.
2004-06-24 12:02:38 +04:00
#
# 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 General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
2016-01-21 13:49:46 +03:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2004-06-24 12:02:38 +04:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 23:10:31 +04:00
top_builddir = @top_builddir@
2004-06-24 12:02:38 +04:00
2015-03-05 23:00:44 +03:00
.PHONY : dmeventd clvmd cmirrord lvmetad lvmpolld lvmlockd
2008-11-04 18:55:27 +03:00
2004-11-03 13:45:07 +03:00
i f n e q ( "@CLVMD@" , "none" )
2011-09-19 04:29:11 +04:00
SUBDIRS += clvmd
2004-06-24 12:02:38 +04:00
e n d i f
2009-08-29 00:51:40 +04:00
i f e q ( "@BUILD_CMIRRORD@" , "yes" )
2009-09-02 21:36:46 +04:00
SUBDIRS += cmirrord
2009-08-13 20:34:07 +04:00
e n d i f
2009-08-29 00:51:40 +04:00
i f e q ( "@BUILD_DMEVENTD@" , "yes" )
2008-11-04 02:01:21 +03:00
SUBDIRS += dmeventd
2010-03-29 18:11:17 +04:00
i f n e q ( "$(CFLOW_CMD)" , "" )
daemons.cflow : dmeventd .cflow
e n d i f
2008-11-01 01:29:44 +03:00
e n d i f
2014-04-16 13:57:42 +04:00
i f e q ( "@BUILD_LVMETAD@" , "yes" )
SUBDIRS += lvmetad
e n d i f
2015-05-09 02:59:18 +03:00
i f e q ( "@BUILD_LVMPOLLD@" , "yes" )
SUBDIRS += lvmpolld
e n d i f
2015-03-05 23:00:44 +03:00
i f e q ( "@BUILD_LVMLOCKD@" , "yes" )
2016-11-25 23:41:43 +03:00
SUBDIRS += lvmlockd
2015-03-05 23:00:44 +03:00
e n d i f
2016-02-18 02:53:35 +03:00
i f e q ( "@BUILD_LVMDBUSD@" , "yes" )
2016-11-25 23:41:43 +03:00
SUBDIRS += lvmdbusd
2016-02-18 02:53:35 +03:00
e n d i f
daemons: add dmfilemapd
Add a daemon that can be launched to monitor a group of regions
corresponding to the extents of a file, and to update the regions as the
file's allocation changes.
The daemon is intended to be started from a library interface, but can
also be run from the command line:
dmfilemapd <fd> <group_id> <path> <mode> [<foreground>[<log_level>]]
Where fd is a file descriptor open on the mapped file, group_id is the
group identifier of the mapped group and mode is either "inode" or
"path". E.g.:
# dmfilemapd 3 0 vm.img inode 1 3 3<vm.img
...
If foreground is non-zero, the daemon will not fork to run in the
background. If verbose is non-zero, libdm and daemon log messages will
be printed.
It is possible for the group identifier to change when regions are
re-mapped: this occurs when the group leader is deleted (regroup=1 in
dm_stats_update_regions_from_fd()), and another region is created before
the daemon has a chance to recreate the leader region.
The operation is inherently racey since there is currently no way to
atomically move or resize a dm_stats region while retaining its
region_id.
Detect this condition and update the group_id value stored in the
filemap monitor.
A function is also provided in the the stats API to launch the filemap
monitoring daemon:
int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path,
dm_filemapd_mode_t mode, unsigned foreground,
unsigned verbose);
This carries out the first fork and execs dmfilemapd with the arguments
specified.
A dm_filemapd_mode_t value is specified by the mode argument: either
DM_FILEMAPD_FOLLOW_INODE, or DM_FILEMAPD_FOLLOW_PATH. A helper function,
dm_filemapd_mode_from_string(), is provided to parse a string containing
a valid mode name into the appropriate dm_filemapd_mode_t value.
2016-12-15 23:10:27 +03:00
i f e q ( "@BUILD_DMFILEMAPD@" , "yes" )
SUBDIRS += dmfilemapd
e n d i f
2010-03-29 18:09:25 +04:00
i f e q ( $( MAKECMDGOALS ) , d i s t c l e a n )
daemons: add dmfilemapd
Add a daemon that can be launched to monitor a group of regions
corresponding to the extents of a file, and to update the regions as the
file's allocation changes.
The daemon is intended to be started from a library interface, but can
also be run from the command line:
dmfilemapd <fd> <group_id> <path> <mode> [<foreground>[<log_level>]]
Where fd is a file descriptor open on the mapped file, group_id is the
group identifier of the mapped group and mode is either "inode" or
"path". E.g.:
# dmfilemapd 3 0 vm.img inode 1 3 3<vm.img
...
If foreground is non-zero, the daemon will not fork to run in the
background. If verbose is non-zero, libdm and daemon log messages will
be printed.
It is possible for the group identifier to change when regions are
re-mapped: this occurs when the group leader is deleted (regroup=1 in
dm_stats_update_regions_from_fd()), and another region is created before
the daemon has a chance to recreate the leader region.
The operation is inherently racey since there is currently no way to
atomically move or resize a dm_stats region while retaining its
region_id.
Detect this condition and update the group_id value stored in the
filemap monitor.
A function is also provided in the the stats API to launch the filemap
monitoring daemon:
int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path,
dm_filemapd_mode_t mode, unsigned foreground,
unsigned verbose);
This carries out the first fork and execs dmfilemapd with the arguments
specified.
A dm_filemapd_mode_t value is specified by the mode argument: either
DM_FILEMAPD_FOLLOW_INODE, or DM_FILEMAPD_FOLLOW_PATH. A helper function,
dm_filemapd_mode_from_string(), is provided to parse a string containing
a valid mode name into the appropriate dm_filemapd_mode_t value.
2016-12-15 23:10:27 +03:00
SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld lvmlockd lvmdbusd dmfilemapd
2010-03-29 18:09:25 +04:00
e n d i f
2010-03-04 12:51:37 +03:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2004-06-24 12:02:38 +04:00
2009-08-29 00:51:40 +04:00
i f e q ( "@BUILD_DMEVENTD@" , "yes" )
2008-11-04 18:55:27 +03:00
device-mapper : dmeventd .device -mapper
2008-11-04 19:41:47 +03:00
e n d i f