| # Example showing multiple mount tables, servers and globing |
| set ROOT_MT_NAME=$MT_NAME ROOT_MT_ADDR=$MT_ADDR |
| nodeMT $USA_MT "palo alto" |
| print "Palo Alto MT" $PA_MT |
| print "--------- Resolve ROOT, ROOT/usa, ROOT/usa/palo alto" |
| print "--------- Each should return a different address" |
| resolve "$ROOT/usa/palo alto" |
| print "--------- ResolveMT ROOT, ROOT/usa - should return the ROOT MT" |
| print "--------- ResolveMT ROOT/usa/palo alto/bar should return the palo alto MT" |
| resolveMT "$ROOT/usa/palo alto/bar" |
| # should return a complete hiearchy.... |
| print "--------- setLocalRoots to global root" |
| print "--------- setLocalRoots to usa" |
| print "--------- setLocalRoots to palo alto" |
| nodeMT $UK_MT "cambridge" |
| # Create a MountTable tree without using the internal 'mt' suffix as in the |
| nodeMT $FRANCE_MT "paris" |
| # Conclusion: some of this behaviour seems a little awkward. In particular: |
| # ls using the local namespace on a rooted name doesn't seem to work either, |
| # thus making it impossible to see the whole name space without setting the |
| # local namespace's root which will clearly cause problems for concurrent |