FreeBSD Bugzilla – Attachment 137172 Details for
Bug 182570
[zfs] [patch] ZFS panic in receive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 989 bytes, created by
Keith White
on 2013-10-02 12:50:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Keith White
Created:
2013-10-02 12:50:03 UTC
Size:
989 bytes
patch
obsolete
>Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c >=================================================================== >--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c (revision 255986) >+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c (working copy) >@@ -592,10 +592,16 @@ > rw_enter(&dn->dn_struct_rwlock, RW_WRITER); > dnode_setdirty(dn, tx); > if (dn->dn_datablksz != blocksize) { >+#if 1 >+ if (dn->dn_maxblkid != 0) { >+ printf("ZFS should panic here since dn->dn_maxblkid is %lu instead of 0\n...but we'll continue\n", dn->dn_maxblkid); >+ } >+#else > /* change blocksize */ > ASSERT(dn->dn_maxblkid == 0 && > (BP_IS_HOLE(&dn->dn_phys->dn_blkptr[0]) || > dnode_block_freed(dn, 0))); >+#endif > dnode_setdblksz(dn, blocksize); > dn->dn_next_blksz[tx->tx_txg&TXG_MASK] = blocksize; > }
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 182570
: 137172