]> git.proxmox.com Git - mirror_zfs.git/commit
Strengthen Linux kernel capabilities detection
authorDamian Szuberski <szuberskidamian@gmail.com>
Thu, 21 Apr 2022 16:37:11 +0000 (18:37 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Apr 2022 16:37:11 +0000 (09:37 -0700)
commit2f31b585e77780b887c3cbf01c0b5498c42fe302
tree52bcf72493e21f8b044578d82a0be0ce719ecf68
parent47a02e39721bd226646dbdfe3063563a4a5e9749
Strengthen Linux kernel capabilities detection

- Add `CONFIG_BLOCK` Linux config requirement to
  `ZFS_AC_KERNEL_CONFIG_DEFINED`. OpenZFS won't compile without
  that block device support due to large amount of functional
  dependencies on it.

- Remove dependency on `groups_alloc()` in
  `ZFS_AC_KERNEL_SRC_GROUP_INFO_GID` to circumvent the missing stub
  in Linux 4.X kernel headers.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #13351
config/kernel-config-defined.m4
config/kernel-group-info.m4