* real-time filesystem monitoring
@ 2004-02-02 14:19 Ognen Duzlevski
2004-02-02 14:40 ` Jan Kokoska
2004-02-02 14:52 ` Esben Stien
0 siblings, 2 replies; 3+ messages in thread
From: Ognen Duzlevski @ 2004-02-02 14:19 UTC (permalink / raw)
To: linux-kernel
Hi,
I am working on a GPL-ed tool to monitor a filesystem in real time and
then perform a backup as soon as something has changed. In that direction
I tried FAM/libfam and dnotify and both choked on large directory
hierarchies. dnotify seems to require open file descriptors so it is not a
good solution unless one is to carefully control the number of the file
descriptors open and perform (sometimes large and slow) directory
re-reads every time there is some change (whose nature dnotify will not
report). I wanted to also port the code to Windows and provide a free
solution for its users and it turns out implementing such a solution on
Windows is much easier - there is a function called ReadDirectoryChangesW
which will notify an application every time there is a filesystem-wide
change and provide all information about this change. Anything similar on
Linux?
Thank you,
Ognen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: real-time filesystem monitoring
2004-02-02 14:19 real-time filesystem monitoring Ognen Duzlevski
@ 2004-02-02 14:40 ` Jan Kokoska
2004-02-02 14:52 ` Esben Stien
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kokoska @ 2004-02-02 14:40 UTC (permalink / raw)
To: linux-kernel, maketo
On Mon, 2004-02-02 at 15:19, Ognen Duzlevski wrote:
> Hi,
>
> I am working on a GPL-ed tool to monitor a filesystem in real time and
> -
Hello,
You can have a look how this has been done elsewhere:
http://www.bangstate.com/changedfiles/
I have tested this here and it works nicely, but you should expect a
higher system load using the userspace daemon for handling file-access
notification actions.
--
Jan Kokoska
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: real-time filesystem monitoring
2004-02-02 14:19 real-time filesystem monitoring Ognen Duzlevski
2004-02-02 14:40 ` Jan Kokoska
@ 2004-02-02 14:52 ` Esben Stien
1 sibling, 0 replies; 3+ messages in thread
From: Esben Stien @ 2004-02-02 14:52 UTC (permalink / raw)
To: linux-kernel
Ognen Duzlevski <maketo@sdf.lonestar.org> writes:
> I am working on a GPL-ed tool to monitor a filesystem in real time and
> then perform a backup as soon as something has changed.
Yeah, been waiting a long time for this
> I tried FAM/libfam and dnotify and both choked on large directory
> hierarchies.
Yeah, I first checked this out too.
> Anything similar on
> Linux?
Filemon, http://www.sysinternals.com, runs on both gnu and windows but
is not free software.
--
b0ef
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-02 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02 14:19 real-time filesystem monitoring Ognen Duzlevski
2004-02-02 14:40 ` Jan Kokoska
2004-02-02 14:52 ` Esben Stien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox