> Lou Gosselin: > > I tried to detect locked branches based on the paths as mentioned below. > > However I'm finding that the below algorithm does not reliably determine > > the branch that a file lock is on. > > As I wrote, there are some complicated cases in real world.
Oops, I forgot to write more here. Think about these cases. (prepare) # mount /dev/sda1 /mnt $ tail -f /mnt/fileA & case1: $ rm /mnt/fileA # umount /mnt error $ lsof fileA is opened But you cannot find fileA. case2: $ mv /mnt/fileB /mnt/fileA # umount /mnt error $ lsof fileA is opened You can find fileA but it is not opened one. These situations can happen in aufs too. J. R. Okajima ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm