summaryrefslogtreecommitdiffstats
path: root/source3/smbd/notify_inotify.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-0/+1
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* Fix valgrind error where a strdup of name reads one byte beyond the end. ↵Jeremy Allison2010-04-191-1/+2
| | | | | | Ensure buffer returned from inotify is null terminated. Jeremy.
* Check we read off the compelte event from inotifySimo Sorce2009-09-051-2/+8
| | | | | | | The kernel may return a short read, so we must use read_data() to make sure we read off the full buffer. If somethign bad happens we also need to kill the inotify watch because the filedescriptor will return out of sync structures if we read only part of the data.
* Stop listening for inotify data when there's noneVolker Lendecke2009-06-271-0/+1
| | | | | | There have been some reports that we're flooding syslog with "No data on inotify fd?!". I haven't been able to reproduce this yet. Until then, it is better to just list this message once.
* Fix some nonempty blank linesVolker Lendecke2009-06-271-9/+9
|
* use glibc sys/inotify.h headerAndrew Tridgell2008-10-301-1/+5
| | | | | | when we first added the inotify code glibc didn't have the inotify functions yet. Now that it does we can use the official header and avoid the asm/unistd.h syscall workaround
* Fix CID 574 - tidies up the code expression.Jeremy Allison2008-10-291-2/+2
| | | | Jeremy.
* Fix inotify detectionVolker Lendecke2008-02-251-1/+7
| | | | | Bug 5271 -- thanks to Tiziano Müller (This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-1/+1
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-10-101-1/+1
| | | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy. (This used to be commit f6fa3080fee1b20df9f1968500840a88cf0ee592)
* r21774: Fix the build with Fedora Core 6.Günther Deschner2007-10-101-0/+4
| | | | | | | tridge/vl: please check. Guenther (This used to be commit 39d54738db5eed106fca07a417843b1e7e4033ff)
* r21104: Rename struct watch_context to struct inotify_watch_contextVolker Lendecke2007-10-101-8/+9
| | | | (This used to be commit 7ac79203f247ed4e41d1612ea82211db8c0cd644)
* r21084: Make the Samba4 files compile in Samba3, not activated yet.Volker Lendecke2007-10-101-27/+33
| | | | | Volker (This used to be commit c24854433a28cc066072a7107e29aa7fe2bec3c8)
* r21077: A step to minimize the diff later: This pulls in unmodified files ↵Volker Lendecke2007-10-101-171/+326
| | | | | | | | | | | | | | from Samba4, not compiled yet. This way the modifications become visible later. ntvfs/common/notify.c -> smbd/notify_internal.c ntvfs/sysdep/inotify.c -> smbd/notify_inotify.c Naturally I had to disable notify again :-) Volker (This used to be commit cdb7d582b7397faa5926bff5783da7fef4209948)
* r20933: Fix the build without inotifyVolker Lendecke2007-10-101-2/+2
| | | | (This used to be commit 4587d8097255c8b8fb8990bc8a13f8145986d29d)
* r20932: This is the basic infrastructure for inotify support. This is far ↵Volker Lendecke2007-10-101-0/+263
from being complete, in particular the various mask bits are not correctly supported yet. Checkin in now, I want to see how the build farm likes it. Volker (This used to be commit c9a5d011a91359b242f6c26f46e96ecea6a44a3b)