-
Notifications
You must be signed in to change notification settings - Fork 2
Description
#1.
zfs/module/zfs/../../module/zfs/vdev_disk.c:126:2: error: implicit declaration of function 'open_bdev_excl'
zfs/module/zfs/../../module/zfs/vdev_disk.c:161:3: error: implicit declaration of function 'close_bdev_excl'
The following trivial patch fixes it:
--- a/include/sys/vdev_disk.h.orig 2011-02-21 00:28:13.913279487 -0800 +++ a/include/sys/vdev_disk.h 2011-02-21 00:29:57.883276290 -0800 @@ -63,8 +63,8 @@ # define vdev_bdev_open(path, md, hld) open_bdev_exclusive(path, md, hld) # define vdev_bdev_close(bdev, md) close_bdev_exclusive(bdev, md) #else -# define vdev_bdev_open(path, md, hld) open_bdev_excl(path, md, hld) -# define vdev_bdev_close(bdev, md) close_bdev_excl(bdev) +# define vdev_bdev_open(path, md, hld) blkdev_get_by_path(path, (md)|FMODE_EXCL, hld) +# define vdev_bdev_close(bdev, md) blkdev_put(bdev, (md)|FMODE_EXCL) #endif /* HAVE_OPEN_BDEV_EXCLUSIVE */ /* 2.6.22 API change */
#2.
zfs/module/zfs/../../module/zfs/zvol.c:247:2: error: too few arguments to function 'blkdev_get'
Its because SPL never tests for blkdev_get:
../spl/spl_config.h:/* #undef HAVE_3ARGS_BLKDEV_GET */
Don't know how to handle the following:
#3.
lzfs/module/lzfs_vnops.c:1275:2: error: initialization from incompatible pointer type
lzfs/module/lzfs_vnops.c:1309:2: error: initialization from incompatible pointer type
#4.
module/lzfs_snap.c:199:2: error: implicit declaration of function 'do_add_mount'
lzfs/module/lzfs_snap.c:220:4: error: too few arguments to function 'follow_down'