It works everywhere else, but not on AIX

John F Haugh II jfh at greenber.austin.ibm.com
Tue Apr 16 10:48:15 AEST 1991


In article <1991Apr15.182214.10391 at ux1.cso.uiuc.edu> phil at 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)



More information about the Comp.unix.aix mailing list