diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-06 11:09:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:21 -0500 |
commit | b5ee277f1aa119e0acd498ab443e4eb990387af1 (patch) | |
tree | 761843c7ec64a7c0f1099cfa94b4405e2d028637 /source4/ntvfs/sysdep | |
parent | 2b0537143c8e098da5638a6b4f8eeffd1cbef4d2 (diff) | |
download | samba-b5ee277f1aa119e0acd498ab443e4eb990387af1.tar.gz samba-b5ee277f1aa119e0acd498ab443e4eb990387af1.tar.xz samba-b5ee277f1aa119e0acd498ab443e4eb990387af1.zip |
r14948: add testing of truncate events, and add truncate support to inotify
backend
(This used to be commit b80523a631ec57c7d19e9a23dca4594d71036138)
Diffstat (limited to 'source4/ntvfs/sysdep')
-rw-r--r-- | source4/ntvfs/sysdep/inotify.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/ntvfs/sysdep/inotify.c b/source4/ntvfs/sysdep/inotify.c index ead2211c8e7..f86e3c19130 100644 --- a/source4/ntvfs/sysdep/inotify.c +++ b/source4/ntvfs/sysdep/inotify.c @@ -116,6 +116,10 @@ static BOOL filter_match(struct watch_context *w, struct inotify_event *e) FILE_NOTIFY_CHANGE_SECURITY))) { return True; } + if ((e->mask & IN_MODIFY) && + (w->filter & FILE_NOTIFY_CHANGE_ATTRIBUTES)) { + return True; + } if ((w->filter & FILE_NOTIFY_CHANGE_FILE_NAME) == 0) { return False; } @@ -281,8 +285,7 @@ static const struct { } inotify_mapping[] = { {FILE_NOTIFY_CHANGE_FILE_NAME, IN_CREATE|IN_DELETE|IN_MOVED_FROM|IN_MOVED_TO}, {FILE_NOTIFY_CHANGE_DIR_NAME, IN_CREATE|IN_DELETE|IN_MOVED_FROM|IN_MOVED_TO}, - {FILE_NOTIFY_CHANGE_ATTRIBUTES, IN_ATTRIB | IN_MOVED_TO | IN_MOVED_FROM}, - {FILE_NOTIFY_CHANGE_SIZE, IN_MODIFY}, + {FILE_NOTIFY_CHANGE_ATTRIBUTES, IN_ATTRIB|IN_MOVED_TO|IN_MOVED_FROM|IN_MODIFY}, {FILE_NOTIFY_CHANGE_LAST_WRITE, IN_ATTRIB}, {FILE_NOTIFY_CHANGE_LAST_ACCESS, IN_ATTRIB}, {FILE_NOTIFY_CHANGE_EA, IN_ATTRIB}, |