finding the filesystem of a file

Dave Taylor {guest} dt at mathcs.emory.edu
Tue Nov 6 06:11:04 AEST 1990


> 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 at mathcs.emory.edu



More information about the Comp.unix.shell mailing list