cachefs_ioctl.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 1996-1998,2001-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_FS_CACHEFS_IOCTL_H
#define _SYS_FS_CACHEFS_IOCTL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* set of subcommands to CACHEFSIO_DCMD */
enum cfsdcmd_cmds {
};
typedef enum cfsdcmd_cmds cfsdcmd_cmds_t;
/* file system states passed to stateset, returned from stateget */
/* bits returned by packinfo */
struct cachefsio_pack {
int p_status; /* status of operation */
};
typedef struct cachefsio_pack cachefsio_pack_t;
struct cachefsio_dcmd {
void *d_sdata; /* data for command */
int d_slen; /* len of data */
void *d_rdata; /* data to return */
int d_rlen; /* len of data */
};
typedef struct cachefsio_dcmd cachefsio_dcmd_t;
struct cachefsio_getinfo {
int gi_modified; /* returns if modified data */
};
typedef struct cachefsio_getinfo cachefsio_getinfo_t;
struct cachefsio_lostfound_arg {
};
typedef struct cachefsio_lostfound_arg cachefsio_lostfound_arg_t;
struct cachefsio_lostfound_return {
};
typedef struct cachefsio_lostfound_return cachefsio_lostfound_return_t;
struct cachefsio_getattrfid {
};
typedef struct cachefsio_getattrfid cachefsio_getattrfid_t;
struct cachefsio_getattrname_arg {
};
typedef struct cachefsio_getattrname_arg cachefsio_getattrname_arg_t;
struct cachefsio_getattrname_return {
};
typedef struct cachefsio_getattrname_return cachefsio_getattrname_return_t;
struct cachefsio_getstats {
int gs_total; /* total blocks */
int gs_gc; /* number of gc blocks */
int gs_active; /* number of active blocks */
int gs_packed; /* number of packed blocks */
int gs_free; /* number of free blocks */
};
typedef struct cachefsio_getstats cachefsio_getstats_t;
struct cachefsio_create_arg {
int cr_exclusive; /* exclusive create or not */
int cr_mode; /* mode */
};
typedef struct cachefsio_create_arg cachefsio_create_arg_t;
struct cachefsio_create_return {
};
typedef struct cachefsio_create_return cachefsio_create_return_t;
struct cachefsio_pushback_arg {
};
typedef struct cachefsio_pushback_arg cachefsio_pushback_arg_t;
struct cachefsio_pushback_return {
};
typedef struct cachefsio_pushback_return cachefsio_pushback_return_t;
struct cachefsio_remove {
int rm_getctime; /* 1 means return new ctime */
};
typedef struct cachefsio_remove cachefsio_remove_t;
struct cachefsio_link {
};
typedef struct cachefsio_link cachefsio_link_t;
struct cachefsio_rename_arg {
int rn_del_getctime; /* 1 means fill in del_ctime */
};
typedef struct cachefsio_rename_arg cachefsio_rename_arg_t;
struct cachefsio_rename_return {
};
typedef struct cachefsio_rename_return cachefsio_rename_return_t;
struct cachefsio_mkdir {
};
typedef struct cachefsio_mkdir cachefsio_mkdir_t;
struct cachefsio_rmdir {
};
typedef struct cachefsio_rmdir cachefsio_rmdir_t;
struct cachefsio_symlink_arg {
};
typedef struct cachefsio_symlink_arg cachefsio_symlink_arg_t;
struct cachefsio_symlink_return {
};
typedef struct cachefsio_symlink_return cachefsio_symlink_return_t;
struct cachefsio_setattr_arg {
int sa_flags; /* flags */
};
typedef struct cachefsio_setattr_arg cachefsio_setattr_arg_t;
struct cachefsio_setattr_return {
};
typedef struct cachefsio_setattr_return cachefsio_setattr_return_t;
struct cachefsio_setsecattr_arg {
int sc_aclcnt; /* count of ACLs */
int sc_dfaclcnt; /* count of default ACLs */
};
typedef struct cachefsio_setsecattr_arg cachefsio_setsecattr_arg_t;
struct cachefsio_setsecattr_return {
};
typedef struct cachefsio_setsecattr_return cachefsio_setsecattr_return_t;
#ifdef _SYSCALL32
/*
*/
struct cachefsio_dcmd32 {
};
typedef struct cachefsio_dcmd32 cachefsio_dcmd32_t;
#endif /* _SYSCALL32 */
int cachefs_unpackall(vnode_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FS_CACHEFS_IOCTL_H */