FreeBSD Bugzilla – Attachment 170343 Details for
Bug 207464
Panic when destroying ZFS snapshot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add-on patch
zfsctl_snapshot_inactive.10.diff (text/plain), 1011 bytes, created by
Andriy Gapon
on 2016-05-16 07:37:45 UTC
(
hide
)
Description:
add-on patch
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2016-05-16 07:37:45 UTC
Size:
1011 bytes
patch
obsolete
>Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c >=================================================================== >--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c (revision 299897) >+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c (working copy) >@@ -1462,10 +1462,22 @@ > return (vp); > } > >+static int >+zfsctl_snapshot_inactive(ap) >+ struct vop_inactive_args /* { >+ struct vnode *a_vp; >+ struct thread *a_td; >+ } */ *ap; >+{ >+ vnode_t *vp = ap->a_vp; > >+ vrecycle(vp); >+ return (0); >+} >+ > static int > zfsctl_snapshot_reclaim(ap) >- struct vop_inactive_args /* { >+ struct vop_reclaim_args /* { > struct vnode *a_vp; > struct thread *a_td; > } */ *ap; >@@ -1663,7 +1675,7 @@ > */ > static struct vop_vector zfsctl_ops_snapshot = { > .vop_default = &default_vnodeops, >- .vop_inactive = VOP_NULL, >+ .vop_inactive = zfsctl_snapshot_inactive, > .vop_lookup = zfsctl_snapshot_lookup, > .vop_reclaim = zfsctl_snapshot_reclaim, > .vop_getattr = zfsctl_snapshot_getattr,
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 207464
:
169495
|
170024
|
170172
| 170343