My HDD mountpoint was at /mnt/old, now I changed it to /mnt/new
So for seamless transition now /mnt/old is a symlink to /mnt/new.
Gradually I want all the programs to use the new mountpoint. How can I monitor what programs access the old path (currently symlink)?
fanotify doesn't work, it resolves the final path, so monitors /mnt/new.
/mnt/old
, if I specify/mnt/old/
then it's like before)/mnt/old
a bind mount instead of a symlink to/mnt/new
? Or export/mnt/new
via nfs and mount it from the same machine on/mnt/old
? (I'm not able to test any of those right now)