2010-08-26 22:22:58 +04:00
|
|
|
dnl #
|
|
|
|
dnl # 2.6.x API change
|
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_GET_DISK_RO], [
|
|
|
|
ZFS_LINUX_TEST_SRC([get_disk_ro], [
|
2010-08-26 22:22:58 +04:00
|
|
|
#include <linux/blkdev.h>
|
|
|
|
],[
|
2022-02-16 18:06:08 +03:00
|
|
|
struct gendisk *disk __attribute__ ((unused)) = NULL;
|
2010-08-26 22:22:58 +04:00
|
|
|
(void) get_disk_ro(disk);
|
2022-02-16 18:06:08 +03:00
|
|
|
], [])
|
2019-10-01 22:50:34 +03:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_GET_DISK_RO], [
|
|
|
|
AC_MSG_CHECKING([whether get_disk_ro() is available])
|
|
|
|
ZFS_LINUX_TEST_RESULT([get_disk_ro], [
|
2010-08-26 22:22:58 +04:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
],[
|
2019-11-12 19:59:06 +03:00
|
|
|
ZFS_LINUX_TEST_ERROR([get_disk_ro()])
|
2010-08-26 22:22:58 +04:00
|
|
|
])
|
|
|
|
])
|