Illumos #1644, #1645, #1646, #1647, #1708
[zfs.git] / include / sys / fs / zfs.h
index 920ba77..86d7ad5 100644 (file)
@@ -21,6 +21,8 @@
 
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 by Delphix. All rights reserved.
+ * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  */
 
 /* Portions Copyright 2010 Robert Milkowski */
@@ -122,6 +124,9 @@ typedef enum {
        ZFS_PROP_DEDUP,
        ZFS_PROP_MLSLABEL,
        ZFS_PROP_SYNC,
+       ZFS_PROP_REFRATIO,
+       ZFS_PROP_WRITTEN,
+       ZFS_PROP_CLONES,
        ZFS_NUM_PROPS
 } zfs_prop_t;
 
@@ -161,6 +166,7 @@ typedef enum {
        ZPOOL_PROP_FREE,
        ZPOOL_PROP_ALLOCATED,
        ZPOOL_PROP_READONLY,
+       ZPOOL_PROP_ASHIFT,
        ZPOOL_NUM_PROPS
 } zpool_prop_t;
 
@@ -218,6 +224,7 @@ const char *zfs_prop_to_name(zfs_prop_t);
 zfs_prop_t zfs_name_to_prop(const char *);
 boolean_t zfs_prop_user(const char *);
 boolean_t zfs_prop_userquota(const char *);
+boolean_t zfs_prop_written(const char *);
 int zfs_prop_index_to_string(zfs_prop_t, uint64_t, const char **);
 int zfs_prop_string_to_index(zfs_prop_t, const char *, uint64_t *);
 uint64_t zfs_prop_random_value(zfs_prop_t, uint64_t seed);
@@ -306,6 +313,11 @@ typedef enum {
        ZFS_SYNC_DISABLED = 2
 } zfs_sync_type_t;
 
+typedef enum {
+       ZFS_XATTR_OFF = 0,
+       ZFS_XATTR_DIR = 1,
+       ZFS_XATTR_SA = 2
+} zfs_xattr_type_t;
 
 /*
  * On-disk version number.
@@ -755,7 +767,7 @@ typedef enum zfs_ioc {
        ZFS_IOC_ERROR_LOG,
        ZFS_IOC_CLEAR,
        ZFS_IOC_PROMOTE,
-       ZFS_IOC_DESTROY_SNAPS,
+       ZFS_IOC_DESTROY_SNAPS_NVL,
        ZFS_IOC_SNAPSHOT,
        ZFS_IOC_DSOBJ_TO_DSNAME,
        ZFS_IOC_OBJ_TO_PATH,
@@ -780,6 +792,9 @@ typedef enum zfs_ioc {
        ZFS_IOC_OBJ_TO_STATS,
        ZFS_IOC_EVENTS_NEXT,
        ZFS_IOC_EVENTS_CLEAR,
+       ZFS_IOC_POOL_REGUID,
+       ZFS_IOC_SPACE_WRITTEN,
+       ZFS_IOC_SPACE_SNAPS,
 } zfs_ioc_t;
 
 /*
@@ -847,6 +862,7 @@ typedef enum {
  *     ESC_ZFS_RESILVER_START
  *     ESC_ZFS_RESILVER_END
  *     ESC_ZFS_POOL_DESTROY
+ *     ESC_ZFS_POOL_REGUID
  *
  *             ZFS_EV_POOL_NAME        DATA_TYPE_STRING
  *             ZFS_EV_POOL_GUID        DATA_TYPE_UINT64