Changeset 157 for trunk/source/pyhesiodfs
- Timestamp:
- 11/11/08 14:16:00 (16 years ago)
- Files:
-
- trunk/source/pyhesiodfs/pyHesiodFS.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/source/pyhesiodfs/pyHesiodFS.py
r150 r157 11 11 12 12 import sys, os, stat, errno 13 from syslog import * 13 14 import fuse 14 15 from fuse import Fuse … … 52 53 def __init__(self, *args, **kwargs): 53 54 Fuse.__init__(self, *args, **kwargs) 55 56 openlog('pyhesiodfs', 0, LOG_DAEMON) 57 54 58 try: 55 59 self.fuse_args.add("allow_other", True) … … 107 111 pointer = pointers[0] 108 112 if pointer['type'] != 'AFS' and pointer['type'] != 'LOC': 109 print >>sys.stderr, "Unknown locker type "+pointer.type+" for locker "+name+" ("+repr(pointer)+" )"113 syslog(LOG_NOTICE, "Unknown locker type "+pointer['type']+" for locker "+name+" ("+repr(pointer)+" )") 110 114 return None 111 115 else: 112 116 self.mounts[name] = pointer['location'] 113 print >>sys.stderr, "Mounting "+name+" on "+pointer['location']117 syslog(LOG_INFO, "Mounting "+name+" on "+pointer['location']) 114 118 return pointer['location'] 115 119 else: 116 print >>sys.stderr, "Couldn't find filsys for "+name120 syslog(LOG_WARNING, "Couldn't find filsys for "+name) 117 121 return None 118 122