aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/libefi
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2019-08-31 06:24:09 +0000
committerToomas Soome <tsoome@FreeBSD.org>2019-08-31 06:24:09 +0000
commitfd7e6079bc2f9bf317a93ea40414e7f0d8416127 (patch)
tree77caff390484c51be480223f4a682dddde4ab973 /stand/efi/libefi
parentc2b600f98fa62740e63e668034266fcecdf6f408 (diff)
downloadsrc-fd7e6079bc2f9bf317a93ea40414e7f0d8416127.tar.gz
src-fd7e6079bc2f9bf317a93ea40414e7f0d8416127.zip
loader.efi: use shift 16 in efipart as it is max ashift supported by zfs
Notes
Notes: svn path=/head/; revision=351637
Diffstat (limited to 'stand/efi/libefi')
-rw-r--r--stand/efi/libefi/efipart.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stand/efi/libefi/efipart.c b/stand/efi/libefi/efipart.c
index a92e16c07799..973ad8f7722f 100644
--- a/stand/efi/libefi/efipart.c
+++ b/stand/efi/libefi/efipart.c
@@ -255,12 +255,13 @@ efipart_inithandles(void)
/*
* We assume the block size 512 or greater power of 2.
- * Also skip devices with block size > 32k.
+ * Also skip devices with block size > 64k (16 is max
+ * ashift supported by zfs).
* iPXE is known to insert stub BLOCK IO device with
* BlockSize 1.
*/
if (blkio->Media->BlockSize < 512 ||
- blkio->Media->BlockSize > (1 << 15) ||
+ blkio->Media->BlockSize > (1 << 16) ||
!powerof2(blkio->Media->BlockSize)) {
continue;
}