diff options
author | Hajo Möller <[email protected]> | 2016-10-26 19:30:43 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-02-03 10:24:34 -0800 |
commit | ffcd0c5434d652326723b6bc302090329d5704e4 (patch) | |
tree | faebbcb8aaa7d465ef5209ea3dc20a0d9c82c6f8 /module/zfs | |
parent | d2beed9116a9b9425b34c03f8e301ad2bb053a42 (diff) |
Fix lookup_bdev() on Ubuntu
Ubuntu added support for checking inode permissions to lookup_bdev() in kernel
commit 193fb6a2c94fab8eb8ce70a5da4d21c7d4023bee (merged in 4.4.0-6.21).
Upstream bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1636517
This patch adds a test for Ubuntu's variant of lookup_bdev() to configure and
calls the function in the correct way.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Hajo Möller <[email protected]>
Closes #5336
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zvol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 04f68b5f8..0bb68f9b8 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -174,7 +174,7 @@ zvol_is_zvol(const char *device) struct block_device *bdev; unsigned int major; - bdev = lookup_bdev(device); + bdev = vdev_lookup_bdev(device); if (IS_ERR(bdev)) return (B_FALSE); |