* Monitor filesystem write to a specific directory?
@ 2020-03-31 7:32 Jeffrey Walton
2020-03-31 8:02 ` Andras Pal
0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2020-03-31 7:32 UTC (permalink / raw)
To: kernelnewbies
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@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Monitor filesystem write to a specific directory?
2020-03-31 7:32 Monitor filesystem write to a specific directory? Jeffrey Walton
@ 2020-03-31 8:02 ` Andras Pal
0 siblings, 0 replies; 2+ messages in thread
From: Andras Pal @ 2020-03-31 8:02 UTC (permalink / raw)
To: Jeffrey Walton; +Cc: kernelnewbies
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@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-31 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 7:32 Monitor filesystem write to a specific directory? Jeffrey Walton
2020-03-31 8:02 ` Andras Pal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).