- Timestamp:
- 12/22/08 13:52:51 (16 years ago)
- Files:
-
- trunk/source/pyhesiodfs/pyHesiodFS.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/source/pyhesiodfs/pyHesiodFS.py
r159 r160 98 98 st = MyStat() 99 99 if path == '/': 100 st.st_mode = stat.S_IFDIR | 07 55100 st.st_mode = stat.S_IFDIR | 0777 101 101 st.st_nlink = 2 102 102 elif path == hello_path: … … 107 107 if self.findLocker(path[1:]): 108 108 st.st_mode = stat.S_IFLNK | 0777 109 st.st_uid = self._user() 109 110 st.st_nlink = 1 110 111 st.st_size = len(self.findLocker(path[1:])) … … 176 177 buf = '' 177 178 return buf 179 180 def unlink(self, path): 181 if path == '/' or path == hello_path: 182 return -errno.EPERM 183 elif '/' not in path[1:]: 184 del self.mounts[self._user()][path[1:]] 185 else: 186 return -errno.EPERM 178 187 179 188 def main():