> 
> I'm looking for a program/script that will take a read-write volume
> name as input and return a pathname to the mount point.  Does anyone
> have a utility that will do this?  Or I can write it myself if someone
> can point out the pieces that I need in order to do this.  We're
> running Sun Sparcstations with 4.1.3_U1.
> 
> Thanks
> Angela C. Fisher                       
> 
> =====================================================================
> EMC Open Storage Group         email: [EMAIL PROTECTED] (yes epoch)
> 171 South Street               phone: (508) 435-2075 x55896
> Hopkinton, MA 01748-2208              (800) 222-3622 x55896
>                                 fax:  (508) 497-7003
> =====================================================================

Depending on the size of your AFS file space and the frequency of
creating new volumes, you could use our method.
We do this once a month.

Do a recursive find in your AFS space and get the pathname for each
directory.   For each directory name, execute the command:
  fs lsmount <directory-name>

This will give you the path name for each mount point.
Save this info for use in answering your query.

Here is a script that we use.
----------------------------------------------------------------------

#!/usr/local/bin/perl

eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
        if $running_under_some_shell;

require "find.pl";

# Traverse desired filesystems

&find('/afs/es.net');

exit;

sub wanted {
    (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) &&
    -d _ &&
    system( "/usr/afsws/bin/fs lsmount -dir $name" );
}

----------------------------------------------------------------
| Joe Ramus  NERSC Livermore  (510) 423-8917   [EMAIL PROTECTED] |
----------------------------------------------------------------

Reply via email to