Skip to content

Commit 19576dd

Browse files
module/zfs: remove zfs_zevent_console and zfs_zevent_cols
zfs_zevent_console committed multiple printk()s per line without properly continuing them ‒ a single event could easily be fragmented across over thirty lines, making it useless for direct application zfs_zevent_cols exists purely to wrap the output from zfs_zevent_console The niche this was supposed to fill can be better served by something akin to the all-syslog ZEDLET Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #7082
1 parent a27ab6d commit 19576dd

File tree

7 files changed

+0
-403
lines changed

7 files changed

+0
-403
lines changed

include/os/freebsd/spl/sys/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ KERNEL_H = \
88
ccompile.h \
99
cmn_err.h \
1010
condvar.h \
11-
console.h \
1211
cred.h \
1312
ctype.h \
1413
debug.h \

include/os/freebsd/spl/sys/console.h

Lines changed: 0 additions & 35 deletions
This file was deleted.

include/os/linux/spl/sys/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ KERNEL_H = \
66
callo.h \
77
cmn_err.h \
88
condvar.h \
9-
console.h \
109
cred.h \
1110
ctype.h \
1211
debug.h \

include/os/linux/spl/sys/console.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

include/sys/fm/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ typedef struct zfs_zevent {
9292

9393
extern void fm_init(void);
9494
extern void fm_fini(void);
95-
extern void fm_nvprint(nvlist_t *);
9695
extern void zfs_zevent_post_cb(nvlist_t *nvl, nvlist_t *detector);
9796
extern int zfs_zevent_post(nvlist_t *, nvlist_t *, zevent_cb_t *);
9897
extern void zfs_zevent_drain_all(int *);

man/man5/zfs-module-parameters.5

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3847,28 +3847,6 @@ set.
38473847
.sp
38483848
.RE
38493849

3850-
.sp
3851-
.ne 2
3852-
.na
3853-
\fBzfs_zevent_cols\fR (int)
3854-
.ad
3855-
.RS 12n
3856-
When zevents are logged to the console use this as the word wrap width.
3857-
.sp
3858-
Default value: \fB80\fR.
3859-
.RE
3860-
3861-
.sp
3862-
.ne 2
3863-
.na
3864-
\fBzfs_zevent_console\fR (int)
3865-
.ad
3866-
.RS 12n
3867-
Log events to the console
3868-
.sp
3869-
Use \fB1\fR for yes and \fB0\fR for no (default).
3870-
.RE
3871-
38723850
.sp
38733851
.ne 2
38743852
.na

0 commit comments

Comments
 (0)