]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzpool/kernel.c
Make user stack limit configurable
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 25 Sep 2014 22:15:45 +0000 (15:15 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Sep 2014 17:46:55 +0000 (10:46 -0700)
commitaa0ac7caa438bf3981456c559d4224be104ccc7d
treef3ddd427d47ad3d28535be3067bbdc4c9f239970
parentcb08f063074a5363810a39775fd90a4d214c5d87
Make user stack limit configurable

To aid in detecting and debugging stack overflow issues make the
user space stack limit configurable via a new ZFS_STACK_SIZE
environment variable.  The value assigned to ZFS_STACK_SIZE will
be used as the default stack size in bytes.

Because this is mainly useful as a debugging aid in conjunction
with ztest the stack limit is disabled by default.  See the ztest(1)
man page for additional details on using the ZFS_STACK_SIZE
environment variable.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #2743
Issue #2293
include/sys/zfs_context.h
lib/libzpool/kernel.c
man/man1/ztest.1