2017-05-01 19:59:20

by Dietrich Hoppe

[permalink] [raw]
Subject: ext4: Onchange?

Hi,

is there any way to register an OnChange-function, that is called by the ext4 file system whenever a change occurs (i.e. create, delete, rename, move a file).

Regards
Dietrich Hoppe


2017-05-01 20:17:30

by Eric Sandeen

[permalink] [raw]
Subject: Re: ext4: Onchange?

On 5/1/17 2:51 PM, Dietrich Hoppe wrote:
> Hi,
>
> is there any way to register an OnChange-function, that is called by
> the ext4 file system whenever a change occurs (i.e. create, delete,
> rename, move a file).
>
> Regards Dietrich Hoppe
>

Take a look at inotify in the linux kernel

https://lwn.net/Articles/604686/
https://en.wikipedia.org/wiki/Inotify
http://www.lanedo.com/filesystem-monitoring-linux-kernel/

etc

-Eric