mirror of
https://github.com/schoebel/mars
synced 2024-12-26 08:32:24 +00:00
light: make LOGROT_AUTO runtime configurable
This commit is contained in:
parent
3336b513ce
commit
44f58e7004
@ -3917,6 +3917,9 @@ static void __exit exit_light(void)
|
||||
exit_say();
|
||||
}
|
||||
|
||||
int global_logrot_auto = CONFIG_MARS_LOGROT_AUTO;
|
||||
EXPORT_SYMBOL_GPL(global_logrot_auto);
|
||||
|
||||
static int __init init_light(void)
|
||||
{
|
||||
int status = 0;
|
||||
|
@ -183,8 +183,8 @@ ctl_table mars_table[] = {
|
||||
},
|
||||
{
|
||||
.ctl_name = CTL_UNNUMBERED,
|
||||
.procname = "net_io_timeout",
|
||||
.data = &global_net_io_timeout,
|
||||
.procname = "logrot_auto",
|
||||
.data = &global_logrot_auto,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0600,
|
||||
.proc_handler = &proc_dointvec,
|
||||
|
@ -10,6 +10,8 @@
|
||||
#define MARS_ARGV_MAX 4
|
||||
#define MARS_PATH_MAX 256
|
||||
|
||||
extern int global_logrot_auto;
|
||||
|
||||
extern char *my_id(void);
|
||||
|
||||
#define MARS_DENT(TYPE) \
|
||||
|
Loading…
Reference in New Issue
Block a user