[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-fs
Subject: Monitoring FS changes
From: Chris Stankevitz <chris () stankevitz ! com>
Date: 2015-12-31 7:24:00
Message-ID: 5684D810.6070700 () stankevitz ! com
[Download RAW message or body]
Hi,
I have a directory /foo that recursively contain ~250,000 files/directories.
I would like my application to know when a file is added, removed, or
modified under /foo. Is there a way to do that with FreeBSD?
I believe on linux a facility called iNotify accomplishes this.
On OSX a facility called FSEvents accomplishes this.
kqueue apparently requires me to open every file and/or directory in my
tree... which won't work because I have so many.
Is there any other option? Perhaps
i=0
while (true)
{
zfs snapshot pool/foo@${i}
zfs diff pool/foo@${i-1} pool/foo@${i}
++i
}
Thank you,
Chris
_______________________________________________
freebsd-fs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic