ctfs_tdir.c revision b38f097029665f4ece801ca129913d36f757b49c
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * CDDL HEADER START
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * The contents of this file are subject to the terms of the
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * Common Development and Distribution License (the "License").
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * You may not use this file except in compliance with the License.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * See the License for the specific language governing permissions
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * and limitations under the License.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * When distributing Covered Code, include this CDDL HEADER in each
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * If applicable, add the following below this CDDL HEADER, with the
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * fields enclosed by brackets "[]" replaced with your own identifying
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * information: Portions Copyright [yyyy] [name of copyright owner]
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * CDDL HEADER END
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * Use is subject to license terms.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#pragma ident "%Z%%M% %I% %E% SMI"
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * Entries in a /system/contract/<type> directory.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major { "latest", ctfs_create_latenode, GFS_CACHE_VNODE },
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#define CTFS_NSPECIALS ((sizeof ctfs_tdir_dirents / sizeof (gfs_dirent_t)) - 1)
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorstatic int ctfs_tdir_do_readdir(vnode_t *, void *, int *, offset_t *,
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major offset_t *, void *, int);
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorstatic int ctfs_tdir_do_lookup(vnode_t *, const char *, vnode_t **, ino64_t *,
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorstatic ino64_t ctfs_tdir_do_inode(vnode_t *, int);
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major * ctfs_create_tdirnode
int flags,
static ino64_t
return (ENOTSUP);
return (ENOENT);
return (ENOENT);