Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!greenber.austin.ibm.com!jfh From: jfh@greenber.austin.ibm.com (John F Haugh II) Newsgroups: comp.unix.aix Subject: Re: It works everywhere else, but not on AIX Message-ID: <6685@awdprime.UUCP> Date: 16 Apr 91 00:48:15 GMT References: <1991Apr15.182214.10391@ux1.cso.uiuc.edu> Sender: news@awdprime.UUCP Organization: Best Care South of the Red River, LCC, Austin, Republic of Texas Lines: 18 In article <1991Apr15.182214.10391@ux1.cso.uiuc.edu> phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes: >So apparently I need some other way to find out the file system I am on >that is also portable over other UNIX platforms. Until AIX, that was "df" >itself. > >If IBM "designed" it this way... WHY? "df" does not work the way you expect for all versions of UNIX. In particular, most older AT&T derived UNIX systems do not give the filesystem for a given file. Short of writing C code, I don't know of any mechanism for doing what you want. [ You could fondle the mount table and see what mount point has the appropriate path prefix, but that is not guaranteed to work ] -- John F. Haugh II | I've Been Moved | MaBellNet: (512) 838-4340 SneakerNet: 809/1D064 | AGAIN ! | VNET: LCCB386 at AUSVMQ BangNet: ..!cs.utexas.edu!ibmchs!auschs!snowball.austin.ibm.com!jfh (e-i-e-i-o)