Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!trw From: trw@aplcen.apl.jhu.edu (Weil timothy) Newsgroups: comp.unix.questions Subject: Directory traversal (crossin mount points) Summary: How to span Filesystems (Mount points) for Dir Traversal Keywords: Directory Traversals, Mount points Message-ID: <5854@aplcen.apl.jhu.edu> Date: 30 Jun 90 14:25:43 GMT Distribution: comp.unix.questions Organization: Johns Hopkins University, Laurel, MD Lines: 17 I'm writing a simple program to emulate the 'pwd' command that traverses from the current directory to the ROOT_INODE via a simple statement like - while (this_dir_inode != ROOT_INO) chdir .. match this_dir_inode in parent_directory .... et cetra Question: - since there are repitions of ROOT_INODE (#2) across file system mount points, how can I distinguish the ROOT_INODE for '/' from '/usr' or '/usr/users' ? Hope this isn't too confusing.