diff options
author | markj <markj@FreeBSD.org> | 2015-03-09 03:50:53 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-03-09 03:50:53 +0000 |
commit | 25e41e0131227176ba3e292de17004267793257b (patch) | |
tree | c2951caec9b898eb9457779108d4f0b71d4607bb /sys/net/zlib.h | |
parent | ef19e8f5a5201503d97ab0010589e37aadf9e262 (diff) | |
download | FreeBSD-src-25e41e0131227176ba3e292de17004267793257b.zip FreeBSD-src-25e41e0131227176ba3e292de17004267793257b.tar.gz |
Reimplement support for userland core dump compression using a new interface
in kern_gzio.c. The old gzio interface was somewhat inflexible and has not
worked properly since r272535: currently, the gzio functions are called with
a range lock held on the output vnode, but kern_gzio.c does not pass the
IO_RANGELOCKED flag to vn_rdwr() calls, resulting in deadlock when vn_rdwr()
attempts to reacquire the range lock. Moreover, the new gzio interface can
be used to implement kernel core compression.
This change also modifies the kernel configuration options needed to enable
userland core dump compression support: gzio is now an option rather than a
device, and the COMPRESS_USER_CORES option is removed. Core dump compression
is enabled using the kern.compress_user_cores sysctl/tunable.
Differential Revision: https://reviews.freebsd.org/D1832
Reviewed by: rpaulo
Discussed with: kib
Diffstat (limited to 'sys/net/zlib.h')
-rw-r--r-- | sys/net/zlib.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/net/zlib.h b/sys/net/zlib.h index 04941df..16edae1 100644 --- a/sys/net/zlib.h +++ b/sys/net/zlib.h @@ -1010,13 +1010,6 @@ extern int EXPORT inflateInit2_ OF((z_streamp strm, int windowBits, uLongf *get_crc_table OF((void)); /* can be used by asm versions of crc32() */ -#ifdef _KERNEL -struct vnode; -extern gzFile gz_open OF((const char *path, const char *mode, - struct vnode *vp)); -#endif - - #ifdef __cplusplus } #endif |