FreeBSD Bugzilla – Attachment 157394 Details for
Bug 199804
ZFS: i/o error - all block copies unavailable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
another take at the fix
file_199804.txt (text/plain), 529 bytes, created by
Andriy Gapon
on 2015-06-03 12:31:28 UTC
(
hide
)
Description:
another take at the fix
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2015-06-03 12:31:28 UTC
Size:
529 bytes
patch
obsolete
>diff --git a/sys/boot/zfs/zfsimpl.c b/sys/boot/zfs/zfsimpl.c >index 8452745..271d85d 100644 >--- a/sys/boot/zfs/zfsimpl.c >+++ b/sys/boot/zfs/zfsimpl.c >@@ -1308,6 +1308,10 @@ dnode_read(const spa_t *spa, const dnode_phys_t *dnode, off_t offset, void *buf, > ibn = bn >> ((nlevels - i - 1) * ibshift); > ibn &= ((1 << ibshift) - 1); > bp = indbp[ibn]; >+ if (BP_IS_HOLE(bp)) { >+ memset(dnode_cache_buf, 0, bsize); >+ break; >+ } > rc = zio_read(spa, &bp, dnode_cache_buf); > if (rc) > return (rc);
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 199804
:
156141
| 157394 |
242543