Fwd: Adjusting zvol_immediate_write_sz

FF fusionfoto at gmail.com
Fri Nov 13 18:17:31 UTC 2015


This is what I wrote up. It compiles into 9.2 and executes fine. I looked
at the section on 9.3 and it doesn't appear that any changes would be
required. Thanks in advance, to whomever looks at it.

# pwd
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
# more patch

--- zvol.c.orig 2015-10-23 18:50:25.000000000 -0400
+++ zvol.c      2015-10-23 18:53:04.000000000 -0400
@@ -1103,6 +1103,12 @@
  * Otherwise we will later flush the data out via dmu_sync().
  */
 ssize_t zvol_immediate_write_sz = 32768;
+SYSCTL_DECL(_vfs_zfs);
+TUNABLE_QUAD("vfs.zfs.zil_immediate_write_sz", &zvol_immediate_write_sz);
+SYSCTL_QUAD(_vfs_zfs, OID_AUTO, zil_immediate_write_sz, CTLFLAG_RW,
+    &zvol_immediate_write_sz, 0, "Controls ZIL behavior by adjusting size
of immediate write");
+
+

 static void
 zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, offset_t off, ssize_t resid,

-------
If you need me to conform it as a patch against / or /usr/src, just let me
know.

Thanks!


More information about the freebsd-fs mailing list