I need to periodically monitor folders on my Linux machine to see if they exceed certain limits.
I checked the stat function call, but works recursively in all subfolders, and the files take a lot of time, and I need to do this for all folders.
Does the kernel support any data structures that I can interpret in my program? Or is it their any standard api for this.
source
share