forked from bicomsystems/go-libzfs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zfeatures.go
executable file
·67 lines (64 loc) · 2.14 KB
/
zfeatures.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package zfs
// #include <stdlib.h>
// #include <libzfs.h>
// #include "zfeatures.h"
// #include "common.h"
// #include "zpool.h"
// #include "zfs.h"
import "C"
const (
ZFEATURE_STR_ASYNC_DESTROY string = "async_destroy"
ZFEATURE_STR_EMPTY_BPOBJ = "empty_bpobj"
ZFEATURE_STR_LZ4_COMPRESS = "lz4_compress"
ZFEATURE_STR_BOOKMARKS = "bookmarks" // 0.6.4
ZFEATURE_STR_EMBEDDED_DATA = "embedded_data"
ZFEATURE_STR_ENABLED_TXG = "enabled_txg"
ZFEATURE_STR_EXTENSIBLE_DATASET = "extensible_dataset"
ZFEATURE_STR_HOLE_BIRTH = "hole_birth"
ZFEATURE_STR_SPACEMAP_HISTOGRAM = "spacemap_histogram"
ZFEATURE_STR_FILESYSTEM_LIMITS = "filesystem_limits" //0.6.5
ZFEATURE_STR_LARGE_BLOCKS = "large_blocks"
ZFEATURE_STR_EDONR = "edonr" //0.7.0
ZFEATURE_STR_LARGE_DNODE = "large_dnode"
ZFEATURE_STR_MULTI_VDEV_CRASH_DUMP = "multi_vdev_crash_dump"
ZFEATURE_STR_SHA512 = "sha512"
ZFEATURE_STR_SKEIN = "skein"
ZFEATURE_STR_USEROBJ_ACCOUNTING = "userobj_accounting"
ZFEATURE_STR_ALLOCATION_CLASSES = "allocation_classes" // 0.8.0
ZFEATURE_STR_BOOKMARK_V2 = "bookmark_v2"
ZFEATURE_STR_DEVICE_REMOVAL = "device_removal"
ZFEATURE_STR_ENCRYPTION = "encryption"
ZFEATURE_STR_OBSOLETE_COUNTS = "obsolete_counts"
ZFEATURE_STR_PROJECT_QUOTA = "project_quota"
ZFEATURE_STR_RESILVER_DEFER = "resilver_defer"
ZFEATURE_STR_SPACEMAP_V2 = "spacemap_v2"
ZFEATURE_STR_ZPOOL_CHECKPOINT = "zpool_checkpoint"
)
var featuresTable []string = []string{
ZFEATURE_STR_ASYNC_DESTROY,
ZFEATURE_STR_EMPTY_BPOBJ,
ZFEATURE_STR_LZ4_COMPRESS,
ZFEATURE_STR_BOOKMARKS,
ZFEATURE_STR_EMBEDDED_DATA,
ZFEATURE_STR_ENABLED_TXG,
ZFEATURE_STR_EXTENSIBLE_DATASET,
ZFEATURE_STR_HOLE_BIRTH,
ZFEATURE_STR_SPACEMAP_HISTOGRAM,
ZFEATURE_STR_FILESYSTEM_LIMITS,
ZFEATURE_STR_LARGE_BLOCKS,
ZFEATURE_STR_EDONR,
ZFEATURE_STR_LARGE_DNODE,
ZFEATURE_STR_MULTI_VDEV_CRASH_DUMP,
ZFEATURE_STR_SHA512,
ZFEATURE_STR_SKEIN,
ZFEATURE_STR_USEROBJ_ACCOUNTING,
ZFEATURE_STR_ALLOCATION_CLASSES,
ZFEATURE_STR_BOOKMARK_V2,
ZFEATURE_STR_DEVICE_REMOVAL,
ZFEATURE_STR_ENCRYPTION,
ZFEATURE_STR_OBSOLETE_COUNTS,
ZFEATURE_STR_PROJECT_QUOTA,
ZFEATURE_STR_RESILVER_DEFER,
ZFEATURE_STR_SPACEMAP_V2,
ZFEATURE_STR_ZPOOL_CHECKPOINT,
}