Files
mirror_zfs/include/sys
George Amanakis 88533ec59a Fix gcc10.1 truncation error
gcc10.1 complains with:

../../include/sys/dmu.h:373:24: error: ‘%s’ directive output may be
truncated writing up to 95 bytes into a region of size 75
[-Werror=format-truncation=]
  373 | #define DMU_POOL_DDT   "DDT-%s-%s-%s"
      |                        ^~~~~~~~~~~~~~
../../module/zfs/ddt.c:256:37: note: in expansion of macro
‘DMU_POOL_DDT’
  256 |  (void) snprintf(name, DDT_NAMELEN, DMU_POOL_DDT,
      |                                     ^~~~~~~~~~~~
../../include/sys/dmu.h:373:32: note: format string is defined here
  373 | #define DMU_POOL_DDT   "DDT-%s-%s-%s"
      |                                ^~
../../module/zfs/ddt.c:256:9: note: ‘snprintf’ output 7 or more bytes
(assuming 102) into a destination of size 80
  256 |  (void) snprintf(name, DDT_NAMELEN, DMU_POOL_DDT,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  257 |      zio_checksum_table[ddt->ddt_checksum].ci_name,
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  258 |      ddt_ops[type]->ddt_op_name, ddt_class_name[class]);
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Increasing DTT_NAMELEN fixes it.

Reviewed-By: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #10433
2020-09-15 21:20:43 +00:00
..
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2019-03-29 09:13:20 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2016-01-08 15:08:19 -08:00
2020-09-15 21:20:43 +00:00
2019-05-07 15:18:44 -07:00
2018-09-05 18:33:36 -07:00
2019-05-07 15:18:44 -07:00
2018-10-09 14:05:13 -07:00
2020-05-12 10:53:32 -07:00
2018-10-01 10:40:11 -07:00
2013-11-04 11:17:48 -08:00
2020-01-22 13:48:59 -08:00
2017-12-07 10:28:50 -08:00
2017-10-11 16:54:48 -04:00
2019-03-29 09:13:20 -07:00
2019-03-29 09:13:20 -07:00
2018-05-29 16:00:33 -07:00
2018-10-03 15:30:55 -07:00
2016-06-07 09:16:52 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:49:07 -08:00
2015-01-06 16:53:24 -08:00
2020-01-22 13:48:59 -08:00
2017-07-13 13:54:00 -04:00
2013-11-04 10:55:25 -08:00
2020-05-12 10:53:32 -07:00
2019-03-29 09:13:20 -07:00
2019-03-29 09:13:20 -07:00
2020-01-22 13:49:07 -08:00
2019-09-25 11:27:47 -07:00
2018-02-08 15:28:18 -08:00
2018-02-08 15:28:18 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2017-03-10 09:51:33 -08:00
2019-03-29 09:13:20 -07:00
2018-05-29 16:00:33 -07:00
2018-05-29 16:00:33 -07:00
2019-05-07 15:18:44 -07:00
2018-02-13 14:54:54 -08:00
2020-05-12 10:53:32 -07:00
2018-02-13 14:54:54 -08:00
2018-09-06 21:44:52 -07:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:48:56 -08:00
2020-01-22 13:48:59 -08:00
2017-03-29 12:24:51 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2019-03-29 09:13:20 -07:00
2020-05-12 10:53:32 -07:00
2020-05-12 10:53:32 -07:00
2017-07-12 13:05:37 -07:00