~ubuntu-branches/debian/stretch/lvm2/stretch

« back to all changes in this revision

Viewing changes to lib/report/values.h

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (30.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20140819153706-0p2sc6a53ef7xnvl
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
 
3
 *
 
4
 * This file is part of LVM2.
 
5
 *
 
6
 * This copyrighted material is made available to anyone wishing to use,
 
7
 * modify, copy, or redistribute it subject to the terms and conditions
 
8
 * of the GNU Lesser General Public License v.2.1.
 
9
 *
 
10
 * You should have received a copy of the GNU Lesser General Public License
 
11
 * along with this program; if not, write to the Free Software Foundation,
 
12
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
13
 */
 
14
 
 
15
/*
 
16
 * This file defines reserved names for field values.
 
17
 *
 
18
 * This is used for registering reserved names with reporting code that
 
19
 * uses the exact value defined whenever the reserved name is hit, for
 
20
 * example during selection criteria processing.
 
21
 *
 
22
 * TYPE_RESERVED_VALUE defines reserved value that is not bound to any field,
 
23
 * but rather it's bound to a certain type. This can be used as a reserved
 
24
 * value for all fields of that type then.
 
25
 *
 
26
 * FIELD_RESERVED_VALUE defines reserved value bound to a single field.
 
27
 *
 
28
 * FIELD_BINARY_RESERVED_VALUE is similar to FIELD_RESERVED_VALUE but it
 
29
 * is specifically designed for defintion of reserved names for fields
 
30
 * with binary values where the reserved names given denote value 1.
 
31
 * The first reserved_name given is also used for reporting,
 
32
 * others are synonyms which are recognized in addition.
 
33
 *
 
34
 */
 
35
 
 
36
/*
 
37
 * TYPE_RESERVED_VALUE(type, reserved_value_id, description, value, reserved_name, ...)
 
38
 * FIELD_RESERVED_VALUE(field_id, reserved_value_id, description, value, reserved_name, ...)
 
39
 * FIELD_BINARY_RESERVED_VALUE(field_id, reserved_value_id, description, reserved_name for 1, ...)
 
40
 */
 
41
 
 
42
/* *INDENT-OFF* */
 
43
 
 
44
/* Per-type reserved values usable for all fields of certain type. */
 
45
TYPE_RESERVED_VALUE(NUM, number_undef_64, "Reserved value for undefined numeric value.", UINT64_C(-1), "-1", "unknown", "undefined", "undef")
 
46
 
 
47
/* Reserved values for PV fields */
 
48
FIELD_RESERVED_BINARY_VALUE(pv_allocatable, pv_allocatable, "", "allocatable")
 
49
FIELD_RESERVED_BINARY_VALUE(pv_exported, pv_exported, "", "exported")
 
50
FIELD_RESERVED_BINARY_VALUE(pv_missing, pv_missing, "", "missing")
 
51
 
 
52
/* Reserved values for VG fields */
 
53
FIELD_RESERVED_BINARY_VALUE(vg_extendable, vg_extendable, "", "extendable")
 
54
FIELD_RESERVED_BINARY_VALUE(vg_exported, vg_exported, "", "exported")
 
55
FIELD_RESERVED_BINARY_VALUE(vg_partial, vg_partial, "", "partial")
 
56
FIELD_RESERVED_BINARY_VALUE(vg_clustered, vg_clustered, "", "clustered")
 
57
FIELD_RESERVED_VALUE(vg_permissions, vg_permissions_rw, "", FIRST_NAME(vg_permissions_rw), "writeable", "rw", "read-write")
 
58
FIELD_RESERVED_VALUE(vg_permissions, vg_permissions_r, "", FIRST_NAME(vg_permissions_r), "read-only", "r", "ro")
 
59
FIELD_RESERVED_VALUE(vg_mda_copies, vg_mda_copies, "", RESERVED(number_undef_64), "unmanaged")
 
60
 
 
61
/* Reserved values for LV fields */
 
62
FIELD_RESERVED_BINARY_VALUE(lv_initial_image_sync, lv_initial_image_sync, "", "initial image sync", "sync")
 
63
FIELD_RESERVED_BINARY_VALUE(lv_image_synced, lv_image_synced, "", "image synced", "synced")
 
64
FIELD_RESERVED_BINARY_VALUE(lv_merging, lv_merging, "", "merging")
 
65
FIELD_RESERVED_BINARY_VALUE(lv_converting, lv_converting, "", "converting")
 
66
FIELD_RESERVED_BINARY_VALUE(lv_allocation_locked, lv_allocation_locked, "", "allocation locked", "locked")
 
67
FIELD_RESERVED_BINARY_VALUE(lv_fixed_minor, lv_fixed_minor, "", "fixed minor", "fixed")
 
68
FIELD_RESERVED_BINARY_VALUE(lv_active_locally, lv_active_locally, "", "active locally", "active", "locally")
 
69
FIELD_RESERVED_BINARY_VALUE(lv_active_remotely, lv_active_remotely, "", "active remotely", "active", "remotely")
 
70
FIELD_RESERVED_BINARY_VALUE(lv_active_exclusively, lv_active_exclusively, "", "active exclusively", "active", "exclusively")
 
71
FIELD_RESERVED_BINARY_VALUE(lv_merge_failed, lv_merge_failed, "", "merge failed", "failed")
 
72
FIELD_RESERVED_BINARY_VALUE(lv_snapshot_invalid, lv_snapshot_invalid, "", "snapshot invalid", "invalid")
 
73
FIELD_RESERVED_BINARY_VALUE(lv_suspended, lv_suspended, "", "suspended")
 
74
FIELD_RESERVED_BINARY_VALUE(lv_live_table, lv_live_table, "", "live table present", "live table", "live")
 
75
FIELD_RESERVED_BINARY_VALUE(lv_inactive_table, lv_inactive_table, "", "inactive table present", "inactive table", "inactive")
 
76
FIELD_RESERVED_BINARY_VALUE(lv_device_open, lv_device_open, "", "open")
 
77
FIELD_RESERVED_BINARY_VALUE(lv_skip_activation, lv_skip_activation, "", "skip activation", "skip")
 
78
FIELD_RESERVED_BINARY_VALUE(zero, zero, "", "zero")
 
79
FIELD_RESERVED_VALUE(lv_permissions, lv_permissions_rw, "", FIRST_NAME(lv_permissions_rw), "writeable", "rw", "read-write")
 
80
FIELD_RESERVED_VALUE(lv_permissions, lv_permissions_r, "", FIRST_NAME(lv_permissions_r), "", "read-only", "r", "ro")
 
81
FIELD_RESERVED_VALUE(lv_permissions, lv_permissions_r_override, "", FIRST_NAME(lv_permissions_r_override), "", "read-only-override", "ro-override", "r-override", "R")
 
82
FIELD_RESERVED_VALUE(lv_read_ahead, lv_read_ahead, "", RESERVED(number_undef_64), "auto")
 
83
 
 
84
/* *INDENT-ON* */