[8465] in Info-AFS_Redistribution
RE: Can one find a mount point just knowing the volume name?
daemon@ATHENA.MIT.EDU (Peter Scott)
Thu Feb 8 13:02:39 2001
Message-Id: <4.3.2.7.2.20010208095431.00af8100@mail2a.jpl.nasa.gov>
Date: Thu, 08 Feb 2001 09:55:29 -0800
To: Stephen Joyce <stephen@physics.unc.edu>
From: Peter Scott <Peter.J.Scott@jpl.nasa.gov>
Cc: info-afs@transarc.com
In-Reply-To: <Pine.GSO.4.10.10102081233480.12194-100000@titan.physics.un
c.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
At 12:41 PM 2/8/01 -0500, Stephen Joyce wrote:
>sub doname {
> local($name) = @_;
> local($dev, $ino, $vol);
>
> return warn "$name: $!\n" unless ($dev, $ino) = lstat($name);
> return &descend($name) if $ino & 1;
What is the meaning of even/oddness of inode numbers? When I tried to make
any sense out of them in our cell I got nowhere.
> return $name if -l $name || ! -d _;
> $vol = `fs lsmount $name`;
> die unless $vol =~ s/.*mount point for volume '(.*)'\n$/\1/;
> printf "%-${volwidth}s %s\n", $vol, $name;
> return $name if $vol =~ /.*\.backup$/;
> return &descend($name);
>}
--
Peter Scott
Peter.J.Scott@jpl.nasa.gov