light: make LOGROT_AUTO runtime configurable

This commit is contained in:
Thomas Schoebel-Theuer 2012-08-14 16:23:30 +02:00 committed by Thomas Schoebel-Theuer
parent 3336b513ce
commit 44f58e7004
3 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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) \