diff options
author | Bryan Cantrill <bryan@joyent.com> | 2012-08-03 19:23:29 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2013-11-06 17:20:21 -0800 |
commit | 72102e7461c97dc268d21d9dd8f02da45f174acd (patch) | |
tree | bb9ad3093bfda709f66f4c8758f02edeec24e8c1 /usr/src/uts/common/sys/port_impl.h | |
parent | b3d32f0ceb59362ba287dcfd6de471e98bfc7fa9 (diff) | |
download | illumos-gate-72102e7461c97dc268d21d9dd8f02da45f174acd.tar.gz |
3928 `tail -f ...` doesn't notice file truncation
3929 `man tail` doesn't mentioned "-F" option
3930 'tail -F ...' not resetting the offset of file rotation properly
3968 want FILE_TRUNC event for PORT_SOURCE_FILE
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: Dan McDonald <danmcd@nexenta.com>
Diffstat (limited to 'usr/src/uts/common/sys/port_impl.h')
-rw-r--r-- | usr/src/uts/common/sys/port_impl.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/port_impl.h b/usr/src/uts/common/sys/port_impl.h index 9f3f291874..504fb9ece1 100644 --- a/usr/src/uts/common/sys/port_impl.h +++ b/usr/src/uts/common/sys/port_impl.h @@ -24,6 +24,10 @@ * Use is subject to license terms. */ +/* + * Copyright (c) 2012, Joyent, Inc. All rights reserved. + */ + #ifndef _SYS_PORT_IMPL_H #define _SYS_PORT_IMPL_H @@ -311,6 +315,7 @@ typedef struct portfop_vp { #define FOP_FILE_SETATTR_MTIME 0x00080000 #define FOP_FILE_SETATTR_CTIME 0x00100000 #define FOP_FILE_LINK_SRC 0x00200000 +#define FOP_FILE_TRUNC 0x00400000 /* * File modification event. @@ -339,10 +344,15 @@ typedef struct portfop_vp { /* + * File trunc event + */ +#define FOP_TRUNC_MASK (FOP_FILE_TRUNC|FOP_FILE_CREATE) + +/* * valid watchable events */ #define FILE_EVENTS_MASK (FILE_ACCESS|FILE_MODIFIED|FILE_ATTRIB \ - |FILE_NOFOLLOW) + |FILE_NOFOLLOW|FILE_TRUNC) /* --- End file events --- */ /* |