Changeset 162 for trunk/source

Show
Ignore:
Timestamp:
12/22/08 13:53:01 (16 years ago)
Author:
broder
Message:

Let users create their own symlinks.

Files:

Legend:

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

    r161 r162  
    207207        return buf 
    208208     
     209    def symlink(self, src, path): 
     210        if path == '/' or path == hello_path: 
     211            return -errno.EPERM 
     212        elif '/' not in path[1:]: 
     213            self.mounts[self._user()][path[1:]] = src 
     214            self.negcache.remove(path[1:]) 
     215            print self.mounts[self._user()] 
     216        else: 
     217            return -errno.EPERM 
     218     
    209219    def unlink(self, path): 
    210220        if path == '/' or path == hello_path: