[OpenAFS] generating a listing of Mount points

Derek Atkins warlord@MIT.EDU
11 Mar 2002 18:17:22 -0500


Phil.Moore@morganstanley.com writes:

> >>>>> "Derek" == Derek Atkins <warlord@MIT.EDU> writes:
> 
> Derek> You can always do something like:
> Derek> find /afs/<your cell> -type d -print | xargs fs lsm | grep -v "not a mount point"
> 
> You have GOT to be kidding...
> 
> For any AFS cell of any reasonable size, you're going to run into the
> length limit for command line arguments in most shells on most systems
> when xargs tries to pass a bajillion directories to fs.

Actually, xargs wont (shouldn't) do that.  The point of xargs is to
break up a too-long-list of arguments into more managable chunks.  If
it does have a problem, you can just use 'xargs -n 100' to limit
yourself to 100 arguments per instantiation of fs.  Tune '100' to your
heart's content.

> That simply does NOT scale.

I agree with you.  I even stated as such in my original mail.
However, it's what's available _today_.  If/when your management tool
is avaialble that will certainly be a better tool for local cell
analysis.  But it's still a pipe dream.

-derek

-- 
       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