It's OP here. Suppose I'm on Linux using ext4 and do `resize2fs` to either shrink or grow the filesystem, how does my perl program capture on the fly how much the filesystem was shrank or grown into? I'm thinking I'd have to make my program listen/watch the Journalling API calls (
https://www.kernel.org/doc/html/v4.19/filesystems/index.html#the-linux-journalling-api), right? What module would I use to listen/watch the API calls constantly so that I can capture the information from the journal instantaneously as soon as the shrink or grow is done? Thanks in advance.