RFS/NFS file detection - possible solution

Tom Christiansen tchrist at convex.COM
Sat Feb 24 02:33:48 AEST 1990


The teststat program fails to identify NFS files on Convex
systems.  Here's the output from a C120 OS7.1:

% teststat.v7 / /usr /usr/spool/globdata/aliases/tacunix
file: / dev: 500 major: 5 minor: 0
I don't think / is a networked file
file: /usr dev: 702 major: 7 minor: 2
I don't think /usr is a networked file
file: /usr/spool/globdata/aliases/tacunix dev: ffffff02 major: ff minor: 2
I don't think /usr/spool/globdata/aliases/tacunix is a networked file

% df  / /usr /usr/spool/globdata/aliases/tacunix
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/da0a              18067   15638     622    96%    /
/dev/st2              244047  190252   29390    87%    /usr
globhost:/usr/spool/globdata
                      315263  232782   50954    82%    /rmt/globhost/globdata


And here's the output from a C220 OS8.0, where major is defined this way:

#define major(x)        ((int)( ( (unsigned)(x) >> 20 ) & 0xfffff) )

% teststat.v8 / /usr /usr/spool/globdata/aliases/tacunix
file: / dev: 4000001 major: 40 minor: 1
I don't think / is a networked file
file: /usr dev: 1c00004 major: 1c minor: 4
I don't think /usr is a networked file
file: /usr/spool/globdata/aliases/tacunix dev: ff00000 major: ff minor: 0
I don't think /usr/spool/globdata/aliases/tacunix is a networked file

% df  / /usr /usr/spool/globdata/aliases/tacunix
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/du0a              45978   19298   22082    47%    /
/dev/dd0e             122559  108944    1359    99%    /usr
globhost:/usr/spool/globdata
                      315263  232783   50953    82%    /rmt/globhost/globdata

You did't really want ALL the df output, did you?

--tom



More information about the Comp.unix.wizards mailing list