FreeBSD ZFS
The Zettabyte File System

sys/zfs_stat.h

Go to the documentation of this file.
00001 /*
00002  * CDDL HEADER START
00003  *
00004  * The contents of this file are subject to the terms of the
00005  * Common Development and Distribution License (the "License").
00006  * You may not use this file except in compliance with the License.
00007  *
00008  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
00009  * or http://www.opensolaris.org/os/licensing.
00010  * See the License for the specific language governing permissions
00011  * and limitations under the License.
00012  *
00013  * When distributing Covered Code, include this CDDL HEADER in each
00014  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
00015  * If applicable, add the following below this CDDL HEADER, with the
00016  * fields enclosed by brackets "[]" replaced with your own identifying
00017  * information: Portions Copyright [yyyy] [name of copyright owner]
00018  *
00019  * CDDL HEADER END
00020  */
00021 /*
00022  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
00023  */
00024 
00025 #ifndef _SYS_FS_ZFS_STAT_H
00026 #define _SYS_FS_ZFS_STAT_H
00027 
00028 #ifdef _KERNEL
00029 #include <sys/isa_defs.h>
00030 #include <sys/dmu.h>
00031 #endif
00032 
00033 #ifdef  __cplusplus
00034 extern "C" {
00035 #endif
00036 
00041 typedef struct zfs_stat {
00042         uint64_t        zs_gen;
00043         uint64_t        zs_mode;
00044         uint64_t        zs_links;
00045         uint64_t        zs_ctime[2];
00046 } zfs_stat_t;
00047 
00048 extern int zfs_obj_to_stats(objset_t *osp, uint64_t obj, zfs_stat_t *sb,
00049     char *buf, int len);
00050 
00051 #ifdef  __cplusplus
00052 }
00053 #endif
00054 
00055 #endif  /* _SYS_FS_ZFS_STAT_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines