FreeBSD ZFS
The Zettabyte File System
Enumerations | Functions

zfeature.c File Reference

#include <sys/zfs_context.h>
#include <sys/zfeature.h>
#include <sys/dmu.h>
#include <sys/nvpair.h>
#include <sys/zap.h>
#include <sys/dmu_tx.h>
#include "zfeature_common.h"
#include <sys/spa_impl.h>
Include dependency graph for zfeature.c:

Go to the source code of this file.

Enumerations

enum  feature_action_t { FEATURE_ACTION_ENABLE, FEATURE_ACTION_INCR, FEATURE_ACTION_DECR }

Functions

boolean_t feature_is_supported (objset_t *os, uint64_t obj, uint64_t desc_obj, nvlist_t *unsup_feat, nvlist_t *enabled_feat)
static int feature_get_refcount (objset_t *os, uint64_t read_obj, uint64_t write_obj, zfeature_info_t *feature, uint64_t *res)
static int feature_do_action (objset_t *os, uint64_t read_obj, uint64_t write_obj, uint64_t desc_obj, zfeature_info_t *feature, feature_action_t action, dmu_tx_t *tx)
void spa_feature_create_zap_objects (spa_t *spa, dmu_tx_t *tx)
void spa_feature_enable (spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx)
void spa_feature_incr (spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx)
void spa_feature_decr (spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx)
boolean_t spa_feature_is_enabled (spa_t *spa, zfeature_info_t *feature)
boolean_t spa_feature_is_active (spa_t *spa, zfeature_info_t *feature)

Enumeration Type Documentation

Enumerator:
FEATURE_ACTION_ENABLE 
FEATURE_ACTION_INCR 
FEATURE_ACTION_DECR 

Definition at line 163 of file zfeature.c.


Function Documentation

static int feature_do_action ( objset_t os,
uint64_t  read_obj,
uint64_t  write_obj,
uint64_t  desc_obj,
zfeature_info_t *  feature,
feature_action_t  action,
dmu_tx_t tx 
) [static]

Definition at line 244 of file zfeature.c.

static int feature_get_refcount ( objset_t os,
uint64_t  read_obj,
uint64_t  write_obj,
zfeature_info_t *  feature,
uint64_t *  res 
) [static]

Definition at line 217 of file zfeature.c.

boolean_t feature_is_supported ( objset_t os,
uint64_t  obj,
uint64_t  desc_obj,
nvlist_t *  unsup_feat,
nvlist_t *  enabled_feat 
)

Definition at line 175 of file zfeature.c.

void spa_feature_create_zap_objects ( spa_t spa,
dmu_tx_t tx 
)

Definition at line 332 of file zfeature.c.

void spa_feature_decr ( spa_t spa,
zfeature_info_t *  feature,
dmu_tx_t tx 
)

Definition at line 386 of file zfeature.c.

void spa_feature_enable ( spa_t spa,
zfeature_info_t *  feature,
dmu_tx_t tx 
)

Definition at line 356 of file zfeature.c.

void spa_feature_incr ( spa_t spa,
zfeature_info_t *  feature,
dmu_tx_t tx 
)

Definition at line 371 of file zfeature.c.

boolean_t spa_feature_is_active ( spa_t spa,
zfeature_info_t *  feature 
)

Definition at line 411 of file zfeature.c.

boolean_t spa_feature_is_enabled ( spa_t spa,
zfeature_info_t *  feature 
)

Definition at line 395 of file zfeature.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines