Hi Thanks it worked. Given two paths, to check if they refer to the same file, is it enough to check if their inode number and their mount points are same ? Or is there something else ? -- Anyone can do any amount of work provided it isn't the work he is supposed to be doing -- Murphy's Laws on Work -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/