I'm quite new to Linux and I have not really a clue on how to do this.
I've got a directory and I'd like to monitor (output to shell) when a file inside that directory get's a file lock and when it is released.
It would be okay to know as well other things, like when a file is created and similar, but I'm mainly interested about the locks.
I don't need to know which process does the lock, it's more about the order in which this happens.
I'm pretty sure some tool for this exists (I already installed
dtrace but after
--help I decided to ask a question here).
Any pointers warm-heartedly appreciated. I'm running a fedora 14 box if that matters.