Monitor filesystem write to a specific directory?

Andras Pal apal at szofi.net
Tue Mar 31 04:02:31 EDT 2020


Hi Jeffrey,
   you may looking for the inotify(7) API and/or the 
inotifiwait(1)/inotifywatch(1) command line tools. These latter ones usually 
shipped within the inotify-tools package.
   Andras

On Tue, 31 Mar 2020, Jeffrey Walton wrote:

> Hi Everyone,
>
> I have some build scripts that allow me to install updated developer
> tools on older machines. It builds and installs tools like Git, Curl
> and Wget. It also builds dependencies. The scripts can handle about 80
> packages.
>
> One of those scripts is building a package that is performing a
> wayward write during 'make install'. It is not using my specified
> --libdir; instead it appears to hard code ${prefix}/lib. The incorrect
> hard coded path breaks on Red Hat systems and Solaris. I need to
> determine the offender.
>
> On Windows I would use Process Monitor, run the programs and then
> filter the events. I'm trying to find a Linux equivalent but neither
> strace nor ltrace looks like an equivalent. For strace and ltrace it
> does not look like I can setup a filter and get the process name.
>
> How can I monitor filesystem writes to a specific directory?
>
> Thanks in advance.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



More information about the Kernelnewbies mailing list