How can I control how much of a large file has changed

Is there a solution for Linux kernel-3.0 (or later) that allows you to receive notifications similar to inotify describing a specific segment of a file that has been modified?

There was a fschange patch for the kernel before 2.6.21. Is there an affordable solution? Can recent fanotify provide functionality?

+8
linux large-files inotify
source share
2 answers

IMO ... forget to use inotify if β€œcute” is not important. In addition, you can configure cronjob using a script that runs diff, or using FIND with the MTIME option.

+1
source share

Not that I know, but there is a way to understand the functionality using a file change notification as an indicator for reading the format of the disk on disk in the file system. Examine the block allocation tables of the internal file system to see what has changed.

It is difficult to do, it suffers from race conditions and is probably a bad idea, but if you have to code fschange on top of 3.0, this is not an option for you, this may be the way to go.

0
source share

All Articles