readahead: normalize logging
This commit is contained in:
parent
6e3eb5ba18
commit
c1480dae17
2
fixme
2
fixme
|
@ -94,6 +94,8 @@
|
||||||
|
|
||||||
* properly handle bind mounts in /etc/fstab
|
* properly handle bind mounts in /etc/fstab
|
||||||
|
|
||||||
|
* readahead() vs. fadvise() vs. ioprio
|
||||||
|
|
||||||
External:
|
External:
|
||||||
|
|
||||||
* place /etc/inittab with explaining blurb.
|
* place /etc/inittab with explaining blurb.
|
||||||
|
|
|
@ -319,7 +319,6 @@ static int collect(const char *root) {
|
||||||
|
|
||||||
m = FAN_EVENT_NEXT(m, n);
|
m = FAN_EVENT_NEXT(m, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fanotify_fd >= 0) {
|
if (fanotify_fd >= 0) {
|
||||||
|
@ -438,12 +437,10 @@ finish:
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
/* log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); */
|
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
|
||||||
log_parse_environment();
|
log_parse_environment();
|
||||||
log_open();
|
log_open();
|
||||||
|
|
||||||
log_set_max_level(LOG_DEBUG);
|
|
||||||
|
|
||||||
if (collect("/") < 0)
|
if (collect("/") < 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
|
@ -201,12 +201,10 @@ finish:
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char*argv[]) {
|
int main(int argc, char*argv[]) {
|
||||||
/* log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); */
|
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
|
||||||
log_parse_environment();
|
log_parse_environment();
|
||||||
log_open();
|
log_open();
|
||||||
|
|
||||||
log_set_max_level(LOG_DEBUG);
|
|
||||||
|
|
||||||
if (replay("/") < 0)
|
if (replay("/") < 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue