adamnt42 at gmail.com
Tue Sep 12 12:19:47 CEST 2023
On 12/9/23 1:34 pm, T Lee Davidson wrote:
> On 9/11/23 13:37, Fabien Bodard wrote:
>> is it possible to watch a file in the /proc path ?
>> I'm trying to watch /proc/self/mountstats... but I'm not able to
>> catch the file modification :-/
>> any idea ?
>> Fabien Bodard
> From `man 7 inotify` in the "Limitations and caveats" section:
> "Furthermore, various pseudo-filesystems such as /proc, /sys, and
> /dev/pts are not monitorable with inotify."
"Well caught, SIr Davidson!!"
I tried a bit of a fudge test today "tailing" the said file fairly
briskly while swapping some USB doodads and here at least, the change in
mountstats was appearing quite some time after the USB had been mounted
and the file manager appeared. Up to 2 seconds later. I don't know if
that's an artifact or just a distro thing but it would seem that if that
lag is widespread then polling and "stat"-ing it a fairly leisurely pace
More information about the User