]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zdb/zdb.c
Fix zdb segfault
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Oct 2014 22:26:49 +0000 (15:26 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Oct 2014 22:30:32 +0000 (15:30 -0700)
commitadc90e9d946b53cb3eba963a2e2b1331cba0e7b5
treed57871f0eac72c236a5c77e2a17dac49583ef336
parent0ec072487b678bb2bda110304e8efccbc7df8713
Fix zdb segfault

On 32-bit systems setting 'zfs_arc_max = 256M' in zdb results in the
following segmentation fault.  Rather than reverting 0ec0724 which
introduced this flaw this code is only used for 64-bit builds.

Segmentation fault (core dumped)
ztest: '/sbin/zdb -bcc -d -U /var/tmp/zpool.cache ztest' exit code 139
child exited with code 3

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