mirror_zfs/udev
Rob Norris 304810208e zvol_id: make array length properly known at compile time
Using strlen() in an static array declaration is a GCC extension. Clang
calls it "gnu-folding-constant" and warns about it, which breaks the
build. If it were widespread we could just turn off the warning, but
since there's only one case, lets just change the array to an explicit
size.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17954
2025-12-10 10:21:29 -08:00
..
rules.d Update 69-vdev.rules.in 2025-05-21 10:05:11 -07:00
.gitignore cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
Makefile.am cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
vdev_id vdev_id: symlinks creation for multipath disk partitions (#17331) 2025-05-13 13:49:13 -07:00
zvol_id.c zvol_id: make array length properly known at compile time 2025-12-10 10:21:29 -08:00