Article View: comp.unix.shell
Article #1714Re: finding the filesystem of a file
From: Dave Taylor {guest}
Date: Mon, 05 Nov 1990 19:11
Date: Mon, 05 Nov 1990 19:11
19 lines
1328 bytes
1328 bytes
> 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
Technical Details
Message-ID:
<6500@emory.mathcs.emory.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!emory!dtReferences:
<6495@emory.mathcs.emory.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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