FreeBSD Bugzilla – Attachment 104086 Details for
Bug 144214
zfsboot fails on gang block after upgrade to zfs v14
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
zfs-boot-gang.patch
zfs-boot-gang.patch (text/plain), 549 bytes, created by
Andriy Gapon
on 2010-05-13 07:59:00 UTC
(
hide
)
Description:
zfs-boot-gang.patch
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2010-05-13 07:59:00 UTC
Size:
549 bytes
patch
obsolete
>diff --git a/sys/boot/zfs/zfsimpl.c b/sys/boot/zfs/zfsimpl.c >index dc29e0e..eae0023 100644 >--- a/sys/boot/zfs/zfsimpl.c >+++ b/sys/boot/zfs/zfsimpl.c >@@ -962,8 +962,13 @@ zio_read_gang(spa_t *spa, const blkptr_t *bp, const dva_t *dva, void *buf) > return (EIO); > > for (i = 0; i < SPA_GBH_NBLKPTRS; i++) { >- if (zio_read(spa, &zio_gb.zg_blkptr[i], buf)) >+ blkptr_t *gbp = &zio_gb.zg_blkptr[i]; >+ >+ if (BP_IS_HOLE(gbp)) >+ continue; >+ if (zio_read(spa, gbp, buf)) > return (EIO); >+ buf = (char*)buf + BP_GET_PSIZE(gbp); > } > > return (0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 144214
: 104086 |
104087