t = xfs_node_find(&xfs[fd], &message->node.handle); if (t != 0) { t->tokens = message->node.tokens; xfs_attr2vattr(&message->node.attr, &t->attr); bcopy(message->node.id, t->id, sizeof(t->id)); bcopy(message->node.rights, t->rights, sizeof(t->rights)); t->anonrights = message->node.anonrights; } else { printf("XFS WARNING! xfs_message_installattr: no node!\n"); error = ENOENT; }
t = xfs_node_find(&xfs[fd], &message->node.handle); if (t != 0) { t->tokens = message->node.tokens; xfs_attr2vattr(&message->node.attr, &t->attr); #ifdef HAVE_KERNEL_VNODE_PAGER_SETSIZE vnode_pager_setsize(XNODE_TO_VNODE(t), t->attr.va_size); #endif bcopy(message->node.id, t->id, sizeof(t->id)); bcopy(message->node.rights, t->rights, sizeof(t->rights)); t->anonrights = message->node.anonrights; } else { printf("XFS PANIC WARNING! xfs_message_installattr: no node!\n"); error = ENOENT; }
xfs_message_installattr(int fd,			struct xfs_message_installattr *message,			u_int size,			struct proc *p){	int error = 0;	struct xfs_node *t;	t = xfs_node_find(&xfs[fd], &message->node.handle);	if (t != 0) {		t->tokens = message->node.tokens;		xfs_attr2vattr(&message->node.attr, &t->attr);		bcopy(message->node.id, t->id, sizeof(t->id));		bcopy(message->node.rights, t->rights, sizeof(t->rights));		t->anonrights = message->node.anonrights;	} else {		printf("XFS WARNING! xfs_message_installattr: no node!\n");		error = ENOENT;	}	return error;}