FreeBSD Bugzilla – Attachment 149495 Details for
Bug 195061
kernel panic on 10.1-Release when creating a file backed zpool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Disable free on file backed vdevs (Against releng/10.1)
vdev_file_free-releng-10.1.patch (text/plain), 1.20 KB, created by
Steven Hartland
on 2014-11-16 21:18:56 UTC
(
hide
)
Description:
Disable free on file backed vdevs (Against releng/10.1)
Filename:
MIME Type:
Creator:
Steven Hartland
Created:
2014-11-16 21:18:56 UTC
Size:
1.20 KB
patch
obsolete
>Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c >=================================================================== >--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c (revision 274469) >+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c (working copy) >@@ -129,6 +129,8 @@ skip_open: > return (error); > } > >+ vd->vdev_notrim = B_TRUE; >+ > *max_psize = *psize = vattr.va_size; > *logical_ashift = SPA_MINBLOCKSHIFT; > *physical_ashift = SPA_MINBLOCKSHIFT; >@@ -171,11 +173,12 @@ vdev_file_io_start(zio_t *zio) > vf = vd->vdev_tsd; > vp = vf->vf_vnode; > >- if (zio->io_type == ZIO_TYPE_IOCTL) { >+ switch (zio->io_type) { >+ case ZIO_TYPE_IOCTL: > switch (zio->io_cmd) { > case DKIOCFLUSHWRITECACHE: >- zio->io_error = VOP_FSYNC(vp, FSYNC | FDSYNC, >- kcred, NULL); >+ zio->io_error = VOP_FSYNC(vp, FSYNC | FDSYNC, kcred, >+ NULL); > break; > default: > zio->io_error = SET_ERROR(ENOTSUP); >@@ -183,6 +186,10 @@ vdev_file_io_start(zio_t *zio) > > zio_interrupt(zio); > return (ZIO_PIPELINE_STOP); >+ case ZIO_TYPE_FREE: >+ zio->io_error = SET_ERROR(ENOTSUP); >+ zio_interrupt(zio); >+ return (ZIO_PIPELINE_STOP); > } > > zio->io_error = vn_rdwr(zio->io_type == ZIO_TYPE_READ ?
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 195061
:
149477
|
149483
|
149484
|
149486
| 149495