Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!emory!dt From: dt@mathcs.emory.edu (Dave Taylor {guest}) Newsgroups: comp.unix.shell Subject: Re: finding the filesystem of a file Keywords: filesystem search find file Message-ID: <6500@emory.mathcs.emory.edu> Date: 5 Nov 90 19:11:04 GMT References: <6495@emory.mathcs.emory.edu> Distribution: usa Organization: Emory University, Dept of Math and CS Lines: 19 > Curious to know if anyone can tell me the fastest way to find out which > filesystem a given file is on if the entire pathname is given. I have only > 5 filesystems but I'm stumped as to on how to make sure that I always match > the file with the appropriate filesystem. i.e. if the files are /u/foo/bar/new > and maybe /u/foobar/new AND the filesystems are /u, /u/foo, and /u/foo/bar. Just for clarification, this on SCO Xenix 2.3.2, so doing a df on the directo- ory of file will NOT work, but thanks to those who replied so quickly. HELP?? --david -- ------- ------- David E. Taylor, OMSS UNIX Development // Operation Mobilization USA AT&T: (404) 631-0432 +====+ UUCP: {decvax, sun!sunatl, gatech}!emory!omusa!dt FAX: (404) 631-0439 +====+ Internet: dt%omusa.uucp@mathcs.emory.edu