Changeset 177

Show
Ignore:
Timestamp:
03/05/09 13:28:52 (16 years ago)
Author:
broder
Message:

Add a convenience mechanism for browsing the RW volumes of lockers by
accessing /mit/.locker

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/source/pyhesiodfs/pyHesiodFS.py

    r176 r177  
    175175        if name in self.mounts[self._uid()]: 
    176176            return self.mounts[self._uid()][name] 
     177        elif name.startswith('.'): 
     178            ro = self.findLocker(name[1:]) 
     179            if ro is None: 
     180                return 
     181            else: 
     182                rw = ro.replace('/afs/', '/afs/.') 
     183                self.mounts[self._uid()][name] = rw 
     184                syslog(LOG_INFO, "Mounting "+name+" on "+rw) 
     185                return rw 
    177186        else: 
    178187            try: