mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
Avoid abort() in vn_rdwr(): libzpool/kernel.c
Make sure that buffer is aligned to 512 bytes on linux so that pread call combined with O_DIRECT does not return EINVAL. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1570
This commit is contained in:
parent
b4f7f10527
commit
5d3dc3fb72
@ -2844,7 +2844,7 @@ zdb_read_block(char *thing, spa_t *spa)
|
|||||||
psize = size;
|
psize = size;
|
||||||
lsize = size;
|
lsize = size;
|
||||||
|
|
||||||
pbuf = umem_alloc(SPA_MAXBLOCKSIZE, UMEM_NOFAIL);
|
pbuf = umem_alloc_aligned(SPA_MAXBLOCKSIZE, 512, UMEM_NOFAIL);
|
||||||
lbuf = umem_alloc(SPA_MAXBLOCKSIZE, UMEM_NOFAIL);
|
lbuf = umem_alloc(SPA_MAXBLOCKSIZE, UMEM_NOFAIL);
|
||||||
|
|
||||||
BP_ZERO(bp);
|
BP_ZERO(bp);
|
||||||
|
Loading…
Reference in New Issue
Block a user