/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/zfs_context.h>
#include <sys/zfs_znode.h>
void
{
int i;
}
}
/*
* swap ace_t and ace_oject_t
*/
void
{
int ace_type;
if (zfs_layout) {
/*
* Avoid overrun. Embedded aces can have one
* of several sizes. We don't know exactly
* how many our present, only the size of the
* buffer containing them. That size may be
* larger than needed to hold the aces
* present. As long as we do not do any
* swapping beyond the end of our block we are
* okay. It it safe to swap any non-ace data
* within the block since it is just zeros.
*/
break;
}
} else {
/* Overrun avoidance */
break;
}
}
switch (entry_type) {
case ACE_OWNER:
case ACE_EVERYONE:
case (ACE_IDENTIFIER_GROUP | ACE_GROUP):
entry_size = zfs_layout ?
sizeof (zfs_ace_hdr_t) : sizeof (ace_t);
break;
case ACE_IDENTIFIER_GROUP:
default:
/* Overrun avoidance */
if (zfs_layout) {
} else {
entry_size = sizeof (zfs_ace_t);
break;
}
}
switch (ace_type) {
entry_size = zfs_layout ?
sizeof (zfs_object_ace_t) :
sizeof (ace_object_t);
break;
default:
sizeof (ace_t);
break;
}
}
}
}
/* ARGSUSED */
void
{
int cnt;
/*
* Arggh, since we don't know how many ACEs are in
* the array, we have to swap the entire block
*/
}
/* ARGSUSED */
void
{
}
void
{
} else {
}
}