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()
6 AC_DEFUN([ZFS_AC_KERNEL_BLKDEV_GET_BY_PATH],
7 [AC_MSG_CHECKING([whether blkdev_get_by_path() is available])
8 ZFS_LINUX_TRY_COMPILE_SYMBOL([
11 blkdev_get_by_path(NULL, 0, NULL);
12 ], [blkdev_get_by_path], [fs/block_dev.c], [
14 AC_DEFINE(HAVE_BLKDEV_GET_BY_PATH, 1,
15 [blkdev_get_by_path() is available])