FreeBSD Bugzilla – Attachment 149486 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
vdev_file_free.patch (text/plain), 1.17 KB, created by
Steven Hartland
on 2014-11-16 15:58:04 UTC
(
hide
)
Description:
Disable free on file backed vdevs
Filename:
MIME Type:
Creator:
Steven Hartland
Created:
2014-11-16 15:58:04 UTC
Size:
1.17 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 274532) >+++ 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_execute(zio); > return; >+ case ZIO_TYPE_FREE: >+ zio->io_error = SET_ERROR(ENOTSUP); >+ zio_execute(zio); >+ return; > } > > 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