lsmounts

Description

lsmounts finds AFS mount points, either in a particular directory or recursively in a directory tree. It lists the volumes found, optionally including the path to the mount point. It can also run loadmtpt to add any discovered mount points to the mount point database.

Both a recursive and non-recursive version of this script were originally written by Neil Crellin. I combined the two and added some additional features. We use this program at Stanford to discover mount points that have moved around and to display the volume structure of a tree (useful, for example, if we're about to delete everything in it).

Requirements

lsmounts is written in Perl. Any version of Perl 5 should do. It uses the AFS utility fs to look for mount points, and you may want to change the places it looks for fs at the top of the script.

For the mount point loading functionality, loadmtpt must be available. You'll also need to change the path to loadmtpt at the top of the script.

License

Copyright 1998, 1999, 2003, 2004 Board of Trustees, Leland Stanford Jr. University.

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. This means that you may choose between the two licenses that Perl is released under: the GNU GPL and the Artistic License. Please see your Perl distribution for the details and copies of the licenses.

Download

The program:

lsmounts 1.8 2005-01-26 Download: HTTP, FTP

Documentation:

Last spun 2007-09-19 from thread modified 2004-04-17