summaryrefslogtreecommitdiffstats
path: root/lib/commands/toolcontext.h
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2011-12-08 21:24:08 +0000
committerAlasdair Kergon <agk@redhat.com>2011-12-08 21:24:08 +0000
commit594753751a2a306e6391b2f2bf82e043c86224ff (patch)
tree1df4ac017c31673317ec9c35205946767bf94851 /lib/commands/toolcontext.h
parent585aaa922fed9e74ca44a06d4055d0b85a980106 (diff)
downloadlvm2-594753751a2a306e6391b2f2bf82e043c86224ff.tar.gz
lvm2-594753751a2a306e6391b2f2bf82e043c86224ff.tar.xz
lvm2-594753751a2a306e6391b2f2bf82e043c86224ff.zip
Only use built-in stack size in clvmd - ignore lvm.conf.
Diffstat (limited to 'lib/commands/toolcontext.h')
-rw-r--r--lib/commands/toolcontext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.h b/lib/commands/toolcontext.h
index 143a9a0e..6fba6869 100644
--- a/lib/commands/toolcontext.h
+++ b/lib/commands/toolcontext.h
@@ -85,6 +85,7 @@ struct cmd_context {
unsigned partial_activation:1;
unsigned si_unit_consistency:1;
unsigned metadata_read_only:1;
+ unsigned threaded:1; /* Set if running within a thread e.g. clvmd */
unsigned independent_metadata_areas:1; /* Active formats have MDAs outside PVs */
@@ -117,7 +118,8 @@ struct cmd_context {
*/
struct cmd_context *create_toolcontext(unsigned is_long_lived,
const char *system_dir,
- unsigned set_buffering);
+ unsigned set_buffering,
+ unsigned threaded);
void destroy_toolcontext(struct cmd_context *cmd);
int refresh_toolcontext(struct cmd_context *cmd);
int refresh_filters(struct cmd_context *cmd);