summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-08-12 21:05:51 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-08-12 21:05:51 +0200
commit231a4558144c732837ede36a52bfc93b5a64bf7e (patch)
treebc5a43d75ee1b98a430d120cbed45930c457d333 /inotail.h
parent4b3d75bc86e69f46325b603ddeff1536211bd26f (diff)
Added ignore flag to struct file_struct
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/inotail.h b/inotail.h
index 882d78d..2fd2cc4 100644
--- a/inotail.h
+++ b/inotail.h
@@ -9,11 +9,13 @@ enum { M_LINES, M_BYTES };
/* Every tailed file is represented as a file_struct */
struct file_struct {
- char *name; /* Name of file (or '-' for stdin) */
- int fd; /* File descriptor (or -1 if file is not open */
- off_t st_size; /* File size */
+ char *name; /* Name of file (or '-' for stdin) */
+ int fd; /* File descriptor (or -1 if file is not open */
+ off_t st_size; /* File size */
- int i_watch; /* Inotify watch associated with file_struct */
+ unsigned ignore; /* Wheter to ignore the file in further processing */
+
+ int i_watch; /* Inotify watch associated with file_struct */
};
#ifdef DEBUG
15c'>Merge branch 'for-3.8/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2 2012-12-06block: Avoid that request_fn is invoked on a dead queueBart Van Assche1-1/+1 2012-12-06block: Rename queue dead flagBart Van Assche1-1/+1 2012-11-23block: Don't access request after it might be freedRoland Dreier1-1/+7 2012-07-20[SCSI] block: Fix blk_execute_rq_nowait() dead queue handlingMuthukumar Ratty1-3/+8 2011-12-14block: add missing blk_queue_dead() checksTejun Heo1-2/+4 2011-12-14block: add blk_queue_dead()Tejun Heo1-1/+1 2011-07-21[SCSI] fix crash in scsi_dispatch_cmd()James Bottomley1-0/+7 2011-05-05block: Remove 'plug/unplug' comment in blk_execute_rq_nowaitTao Ma1-1/+1 2011-04-18block: add blk_run_queue_asyncChristoph Hellwig1-1/+1 2011-03-10Merge branch 'for-2.6.39/stack-plug' into for-2.6.39/coreJens Axboe1-2/+2 2011-03-10block: remove per-queue pluggingJens Axboe1-2/+2 2010-09-24block: Prevent hang_check firing during long I/OMark Lord1-1/+8 2010-08-07block: remove wrappers for request type/flagsChristoph Hellwig1-1/+1