FreeBSD Bugzilla – Attachment 156141 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]
zfsimpl.c diff for HOLE issue.
zfsimpl.diff (text/plain), 504 bytes, created by
Toomas Soome
on 2015-04-30 11:08:42 UTC
(
hide
)
Description:
zfsimpl.c diff for HOLE issue.
Filename:
MIME Type:
Creator:
Toomas Soome
Created:
2015-04-30 11:08:42 UTC
Size:
504 bytes
patch
obsolete
>--- /code/freebsd/head/sys/boot/zfs/zfsimpl.c N apr 16 14:49:00 2015 >+++ zfsimpl.c N apr 30 13:38:56 2015 >@@ -1255,7 +1255,11 @@ > ibn = bn >> ((nlevels - i - 1) * ibshift); > ibn &= ((1 << ibshift) - 1); > bp = indbp[ibn]; >- rc = zio_read(spa, &bp, dnode_cache_buf); >+ if (BP_IS_HOLE(&bp)) { >+ memset(dnode_cache_buf, 0, BP_GET_PSIZE(&bp)); >+ rc = 0; >+ } else >+ rc = zio_read(spa, &bp, dnode_cache_buf); > if (rc) > return (rc); > indbp = (const blkptr_t *) dnode_cache_buf;
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