diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-05-25 13:38:03 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-07-18 14:35:17 +0200 |
commit | 260e8f24768d7a6e7c6a8018b5c2b08e7a35e35c (patch) | |
tree | 23dbd3e0ac4f438ea52cc86071e317a0237b9c9a /lib/activate/activate.h | |
parent | c4db22bd4f3d4a7328b2e03c27a5c1edb167d47f (diff) | |
download | lvm2-260e8f24768d7a6e7c6a8018b5c2b08e7a35e35c.tar.gz lvm2-260e8f24768d7a6e7c6a8018b5c2b08e7a35e35c.tar.xz lvm2-260e8f24768d7a6e7c6a8018b5c2b08e7a35e35c.zip |
thin: detect supported features from thinp target
Add shell variable to override reported min version for testing:
LVM_THIN_VERSION_MIN
Diffstat (limited to 'lib/activate/activate.h')
-rw-r--r-- | lib/activate/activate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/activate/activate.h b/lib/activate/activate.h index f473a11f..6497eea3 100644 --- a/lib/activate/activate.h +++ b/lib/activate/activate.h @@ -44,6 +44,15 @@ struct lv_activate_opts { /* target attribute flags */ #define MIRROR_LOG_CLUSTERED 0x00000001U +/* thin target attribute flags */ +enum { + /* bitfields - new features from 1.1 version */ + THIN_FEATURE_DISCARD = (1 << 0), + THIN_FEATURE_EXTERNAL_ORIGIN = (1 << 1), + THIN_FEATURE_HELD_ROOT = (1 << 2), + THIN_FEATURE_BLOCK_SIZE = (1 << 3), +}; + void set_activation(int activation); int activation(void); |