From 72107d51f93406216ec45dc4a7aeec46036cf659 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 25 Jan 2009 19:27:04 +0100 Subject: Document the options in the README --- README | 26 +++++++++++++++++++++++--- inotail.c | 4 ++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/README b/README index a4a200a..b38911e 100644 --- a/README +++ b/README @@ -8,9 +8,6 @@ versions of the Linux kernel to speed up tailing files in the follow mode (the listens to special events sent by the kernel through the inotify API to determine whether a file needs to be reread. -Currently inotail is not fully compatible to neither POSIX or GNU tail but might -be in the future. - Requirements ------------ - Linux kernel 2.6.13 or higher with CONFIG_INOTIFY enabled @@ -33,6 +30,29 @@ inotail binary to /usr/ and the manpage to /usr/share/man/ respectively type: $ make prefix=/usr install +Compatibility & options +----------------------- +inotail is fully option compatible with current POSIX and GNU tail, though the +obsolescent options present in previous versions of those are not present (e.g. +inotail +/-). The following options are present in inotail for +compatibility reasons (e.g. to use inotail as a tail replacement in scripts) but +do have no effect on inotail besides emiting a warning: + +-s N, --sleep-interval=N inotail does not need a sleep interval because it's + relying on inotify. + +--max-unchanged-stats=N inotail watches the containing directory of the file + when following by name (--follow=name or -F). Thus it + gets notified when a file gets moved or deleted. + +--pid=PID Watching the writer PID ios not possible, because + inotail blocks on the read() call on the inotify fd. + In the worst case, the dying process wouldn't cause an + inotify event, so inotail would never get back from + the read(). + +These options are neither documented in the manpage nor the in-program help. + License ------- inotail is licensed under the terms of the GNU General Public License version 2 diff --git a/inotail.c b/inotail.c index 53101a8..55fa532 100644 --- a/inotail.c +++ b/inotail.c @@ -783,7 +783,7 @@ int main(int argc, char **argv) case 's': /* No sleep interval because we're never sleeping. * That's the whole point of inotail! */ - fprintf(stderr, "Warning: Option '-s' has no effect in inotail\n"); + fprintf(stderr, "Warning: Option '-s' has no effect, ignoring\n"); break; case PID_OPTION: /* Watching the PID is not possible because of the @@ -792,7 +792,7 @@ int main(int argc, char **argv) /* inotail (will) watch the containing directory for the * file being moved or deleted, so there is no need for * this either */ - fprintf(stderr, "Warning: Option '--%s' has no effect in inotail\n", long_opts[option_idx].name); + fprintf(stderr, "Warning: Option '--%s' has no effect, ignoring\n", long_opts[option_idx].name); break; default: usage(EXIT_FAILURE); -- cgit v1.2.3-54-g00ecf 631dd1a885b6d7e9f6f51b4e5b311c2bb04c323c'>cipso_ipv4.c
diff options
context:
space:
mode:
authorJustin P. Mattock <justinmattock@gmail.com>2010-10-18 11:03:14 +0200
committerJiri Kosina <jkosina@suse.cz>2010-10-18 11:03:14 +0200
commit631dd1a885b6d7e9f6f51b4e5b311c2bb04c323c (patch)
treec431fa3479c1d35842fb5635ed7ccd487d063a62 /net/ipv4/cipso_ipv4.c
parentd7eccbbae84b2ee7dbb756e60287c4b47071444e (diff)
Update broken web addresses in the kernel.
The patch below updates broken web addresses in the kernel Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Cc: Maciej W. Rozycki <macro@linux-mips.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Finn Thain <fthain@telegraphics.com.au> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Matt Turner <mattst88@gmail.com> Cc: Dimitry Torokhov <dmitry.torokhov@gmail.com> Cc: Mike Frysinger <vapier.adi@gmail.com> Acked-by: Ben Pfaff <blp@cs.stanford.edu> Acked-by: Hans J. Koch <hjk@linutronix.de> Reviewed-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/ipv4/cipso_ipv4.c')