Changeset 5572

Show
Ignore:
Timestamp:
07/18/12 14:41:45 (7 years ago)
Author:
cmatthew
Message:

Added truncate systemcall, test for it, and fuse support.
chmod added.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/fuse/lind_fuse.py

    r5571 r5572  
    329329    def chmod(self, path, mode): 
    330330        log("chmod (unimplemented)", path, hex(mode)) 
    331         return -errno["ENOSYS"] 
     331        try: 
     332            ret = lind.chmod_syscall(path, mode) 
     333        except lind.SyscallError, e: 
     334            ret = -errno[e[1]] 
     335        return ret 
     336         
    332337 
    333338    def chown(self, path, user, group):