1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/tools/lvm2cmd.c
Zdenek Kabelac bd272e3bce lvmcmdlib: lvm2_init_threaded
cmd context has 'threaded' value that used be set
by clvmd - and allowed proper memory locking management.
Reuse same bit for dmeventd.

Since dmeventd is using 300KiB stack per thread,
we will ignore any user settings for allocation/reserved_stack
until some better solution is find.
This avoids crashing of dmevend when user changes this value
and because in most cases lvm2 should work ok with 64K stack
size, this change should not cause any problems.
2020-10-20 22:22:52 +02:00

33 lines
846 B
C

/*
* Copyright (C) 2006-2007 Red Hat, Inc. All rights reserved.
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "lvm2cmdline.h"
#include "tools/lvm2cmd.h"
void *lvm2_init(void)
{
return cmdlib_lvm2_init(0, 0);
}
void *lvm2_init_threaded(void)
{
return cmdlib_lvm2_init(0, 1);
}
int lvm_shell(struct cmd_context *cmd __attribute__((unused)),
struct cmdline_context *cmdline __attribute__((unused)))
{
return 0;
}