]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/ztest/ztest.c
Minimize ztest stack frame size
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Oct 2012 18:14:04 +0000 (11:14 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Oct 2012 20:19:09 +0000 (13:19 -0700)
commit483106eb71b1886c824951b3a35d89d47d41405e
tree2d20cc11f8b2e40c374a871b581eaa5f1a1cb59d
parent9d81146b015e8f4f611357c4cef17fbfb2f4bd54
Minimize ztest stack frame size

To ensure ztest behaves as similarly as possible to the kernel
implementation of ZFS we attempt to honor the kernel stack limits.
This includes keeping the individual stack frame sizes under 1K
in size.  We currently use gcc to detect and enforce this limit.

Therefore to get this building cleanly with full debugging enabled
the stack usage in the following functions has been reduced by
moving the buffer to the heap.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/ztest/ztest.c