ret.res = truncate_file (entry, size, ce);
ret.res   = truncate_file (entry, size, ce); ret.error = ret.res;
cm_ftruncate (VenusFid fid, off_t size, CredCacheEntry* ce){     FCacheEntry *entry;     Result ret;     int error;     error = fcache_get (&entry, fid, ce);     if (error) {	 ret.res = -1;	 ret.error = error;	 return ret;     }     error = fcache_get_attr (entry, ce);     if (error) {	 ReleaseWriteLock (&entry->lock);	 ret.res = -1;	 ret.error = error;	 return ret;     }     if (checkright (entry, AWRITE, ce)) {	  ret.res = truncate_file (entry, size, ce);	  log_operation ("ftruncate (%ld,%lu,%lu,%lu) %lu\n",		   fid.Cell, fid.fid.Volume, fid.fid.Vnode, fid.fid.Unique,		   (unsigned long)size);     } else {	  ret.res = -1;	  ret.error = EACCES;     }     ReleaseWriteLock (&entry->lock);     return ret;}