def print_node_trans (node, name): if node is MACH_PORT_NULL: error(0, -1, name) else: err, trans = node.get_translator() if not err: if not silent: if print_prefix: print '%s: %s' % (name, trans) else: print trans global status status = 0 elif err == errno.EINVAL: if not silent and print_prefix and show_untrans: print name else: error(0, err, name)
def sync_one (name, port): err = port.syncfs(synchronous, do_children) if port else -1 if err: error(1, err, name)