ctfs_tmpl.c revision 25e8c5aa2b496d9026e958ac731a610167574f59
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/vfs_opreg.h>
#include <sys/sysmacros.h>
#include <sys/contract.h>
#include <sys/contract_impl.h>
#include <sys/ctfs_impl.h>
/*
*/
/*
* ctfs_create_tmplnode
*
* Creates a new template and tdirnode, and returns the tdirnode.
*/
vnode_t *
{
return (vp);
}
/*
* ctfs_tmpl_open - VOP_OPEN entry point
*
* Just ensures the right mode bits are set.
*/
/* ARGSUSED */
static int
{
return (EINVAL);
return (0);
}
/*
* ctfs_tmpl_getattr - VOP_GETATTR entry point
*/
/* ARGSUSED */
static int
{
return (0);
}
/*
* ctfs_tmpl_ioctl - VOP_IOCTL entry point
*
* All the ct_tmpl_*(3contract) interfaces point here.
*/
/* ARGSUSED */
static int
int *rvalp)
{
int error;
switch (cmd) {
case CT_TACTIVATE:
break;
case CT_TCLEAR:
break;
case CT_TCREATE:
if (error)
return (error);
break;
case CT_TSET:
return (EFAULT);
case CT_TGET:
return (EFAULT);
if (error)
return (error);
return (EFAULT);
break;
default:
return (EINVAL);
}
return (0);
}
/*
* ctfs_tmpl_inactive - VOP_INACTIVE entry point
*/
/* ARGSUSED */
static void
{
}
}
const fs_operation_def_t ctfs_tops_tmpl[] = {
};