cachefs_noopc.c revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
/*
* 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/pathname.h>
#include <sys/sysmacros.h>
#include <sys/bootconf.h>
/*ARGSUSED*/
static int
{
int error;
/* NFSv4 always sets strict consistency */
/* if attributes not passed in then get them */
/* if not connected then cannot get attrs */
return (ETIMEDOUT);
/* get backvp if necessary */
if (error)
return (error);
}
/* get the attributes */
if (error)
return (error);
} else {
/* copy passed in attributes into the cnode */
}
return (0);
}
/*ARGSUSED*/
static int
{
int error = 0;
/* nothing to do if not connected */
goto out;
/* done if do not have to check */
if (((verify_what & C_BACK_CHECK) == 0) &&
goto out;
/* get backvp if necessary */
if (error)
goto out;
}
/* get the file attributes from the back fs */
backhit = 1;
if (error)
goto out;
out:
if (backhit != 0) {
if (fail != 0)
else
}
return (error);
}
static void
{
int error;
/* from now on, make sure we're using the server's idea of time */
/* if in write-around mode, make sure file is nocached */
if (CFS_ISFS_WRITE_AROUND(fscp)) {
}
/* get the new attributes so we don't wait forever to get them */
if (error)
return;
}
if (error)
return;
}
/*ARGSUSED*/
static void
{
}
/*ARGSUSED*/
static void
{
}
struct cachefsops nopcfsops = {
};