]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/kernel-blkdev-get-by-path.m4
Move partition scanning from userspace to module.
[mirror_zfs-debian.git] / config / kernel-blkdev-get-by-path.m4
1 dnl #
2 dnl # 2.6.38 API change
3 dnl # open_bdev_exclusive() changed to blkdev_get_by_path()
4 dnl # close_bdev_exclusive() changed to blkdev_put()
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_BLKDEV_GET_BY_PATH], [
7 ZFS_CHECK_SYMBOL_EXPORT(
8 [blkdev_get_by_path],
9 [fs/block_dev.c],
10 [AC_DEFINE(HAVE_BLKDEV_GET_BY_PATH, 1,
11 [blkdev_get_by_path() is available])],
12 [])
13 ])