mirror_zfs/cmd
Brian Behlendorf f3c9cac143 Fix gcc -Warray-bounds check for dump_object() in zdb
As of gcc 6.1.1 20160621 (Red Hat 6.1.1-3) an array bounds warnings
is detected in the zdb the dump_object() function.  The analysis is
correct but difficult to interpret because this is implemented as a
macro.  Rework the ZDB_OT_NAME in to a function and remove the case
detected by gcc which is a side effect of the DMU_OT_IS_VALID() macro.

  zdb.c: In function ‘dump_object’:
  zdb.c:1931:288: error: array subscript is outside array bounds
      [-Werror=array-bounds]

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
Closes #4907
2016-08-02 13:14:47 -07:00
..
arc_summary Update arc_summary.py for prefetch changes 2016-07-19 09:12:41 -07:00
arcstat Update arcstat.py to remove deprecated rmis reference. 2015-12-04 15:28:45 -08:00
dbufstat Make arc_summary.py and dbufstat.py compatible with python3 2016-01-07 17:09:59 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Make zfs mount according to relatime config in dataset 2016-04-05 18:55:59 -07:00
raidz_test Fixes and enhancements of SIMD raidz parity 2016-07-19 16:43:07 -07:00
vdev_id Add extra keyword 'slot' to vdev_id.conf 2015-08-30 10:03:56 -07:00
zdb Fix gcc -Warray-bounds check for dump_object() in zdb 2016-08-02 13:14:47 -07:00
zed Ensure zed _finish_daemonize() leaves fds 0-2 open 2016-03-08 17:46:41 -08:00
zfs Fixes for issues found with cppcheck tool 2016-07-27 13:31:22 -07:00
zhack OpenZFS 6314 - buffer overflow in dsl_dataset_name 2016-06-28 13:47:03 -07:00
zinject Fixes for issues found with cppcheck tool 2016-07-27 13:31:22 -07:00
zpios Fix minor spelling mistakes 2016-06-06 14:45:26 -07:00
zpool Multi-thread 'zpool import' for blkid 2016-07-27 13:38:46 -07:00
zstreamdump OpenZFS 2605, 6980, 6902 2016-06-28 13:47:02 -07:00
ztest ztest: memory leaks reported by AddressSanitizer 2016-07-29 15:34:12 -07:00
zvol_id OpenZFS 6314 - buffer overflow in dsl_dataset_name 2016-06-28 13:47:03 -07:00
Makefile.am SIMD implementation of vdev_raidz generate and reconstruct routines 2016-06-21 09:27:26 -07:00