[OpenAFS] generating a listing of Mount points
Derek Atkins
warlord@MIT.EDU
11 Mar 2002 16:09:20 -0500
You can always do something like:
find /afs/<your cell> -type d -print | xargs fs lsm | grep -v "not a mount point"
Note that this is very simplistic and will go into an infinite loop if
you have any mount-point loops. For example, if you have:
/afs/cell/user/foo
bar -> user.bar
/afs/cell/user/bar
foo -> user.foo
The above will give you a loop. The command above will not solve
that. However, it's a first-pass attempt.
-derek
"David R Boldt" <dboldt@usgs.gov> writes:
> Derek,
>
> I only require information about mounts within my own cell/namespace.
>
> -- David Boldt
> <dboldt@usgs.gov>
>
>
>
>
>
> Derek Atkins <warlord@MIT.EDU>
> Sent by: openafs-info-admin@openafs.org
> 03/11/2002 02:35 PM
>
>
> To: "David R Boldt" <dboldt@usgs.gov>
> cc: OpenAFS-info@openafs.org
> Subject: Re: [OpenAFS] generating a listing of Mount points
>
> There is no way to know all the mount points that belong to
> a volume. The reason is that the mount point can live in another
> cell, and there is no way you can know that.
>
> -derek
>
> "David R Boldt" <dboldt@usgs.gov> writes:
>
> > Does anyone have a program that they are willing to share
> > which will generate a listing of AFS mount points (from Salvager
> > output)?
> >
> > I was part way through a Perl program to accomplish this
> > and suddenly had the sense that I was probably reinventing
> > a wheel.
> > -- David Boldt
> > <dboldt@usgs.gov>
>
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord@MIT.EDU PGP key available
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>
>
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available