mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
report: Remove lv_target_type field.
This field is too complicated to be useful on its own and either needs redefining or splitting up into multiple fields.
This commit is contained in:
parent
99e3c13012
commit
50961f43d0
@ -49,7 +49,7 @@ FIELD(LVS, lv, BIN, "AllocLock", lvid, 10, lvallocationlocked, lv_allocation_loc
|
||||
FIELD(LVS, lv, BIN, "FixMin", lvid, 10, lvfixedminor, lv_fixed_minor, "Set if LV has fixed minor number assigned.", 0)
|
||||
FIELD(LVS, lv, BIN, "MergeFailed", lvid, 15, lvmergefailed, lv_merge_failed, "Set if snapshot merge failed.", 0)
|
||||
FIELD(LVS, lv, BIN, "SnapInvalid", lvid, 15, lvsnapshotinvalid, lv_snapshot_invalid, "Set if snapshot LV is invalid.", 0)
|
||||
FIELD(LVS, lv, STR, "TargetType", lvid, 10, lvtargettype, lv_target_type, "Kernel target type the LV is related to.", 0)
|
||||
//FIELD(LVS, lv, STR, "TargetType", lvid, 10, lvtargettype, lv_target_type, "Kernel target type the LV is related to.", 0)
|
||||
FIELD(LVS, lv, STR, "Health", lvid, 15, lvhealthstatus, lv_health_status, "LV health status.", 0)
|
||||
FIELD(LVS, lv, BIN, "SkipAct", lvid, 15, lvskipactivation, lv_skip_activation, "Set if LV is skipped on activation.", 0)
|
||||
FIELD(LVS, lv, STR, "Active", lvid, 6, lvactive, lv_active, "Active state of the LV.", 0)
|
||||
|
@ -216,11 +216,10 @@ GET_PV_NUM_PROPERTY_FN(pv_ba_size, SECTOR_SIZE * pv->ba_size)
|
||||
#define _lv_inactive_table_get prop_not_implemented_get
|
||||
#define _lv_device_open_set prop_not_implemented_set
|
||||
#define _lv_device_open_get prop_not_implemented_get
|
||||
#define _lv_target_type_set prop_not_implemented_set
|
||||
#define _lv_target_type_get prop_not_implemented_get
|
||||
//#define _lv_target_type_set prop_not_implemented_set
|
||||
//#define _lv_target_type_get prop_not_implemented_get
|
||||
#define _lv_health_status_set prop_not_implemented_set
|
||||
#define _lv_health_status_get prop_not_implemented_get
|
||||
#define _lv_target_type_get prop_not_implemented_get
|
||||
#define _lv_skip_activation_set prop_not_implemented_set
|
||||
#define _lv_skip_activation_get prop_not_implemented_get
|
||||
|
||||
|
@ -1603,6 +1603,7 @@ static int _lvdeviceopen_disp(struct dm_report *rh, struct dm_pool *mem,
|
||||
return _binary_undef_disp(rh, mem, field, private);
|
||||
}
|
||||
|
||||
/* FIXME Replace with something that provides a complete unique description for every combination.
|
||||
static int _lvtargettype_disp(struct dm_report *rh, struct dm_pool *mem,
|
||||
struct dm_report_field *field,
|
||||
const void *data, void *private)
|
||||
@ -1629,6 +1630,7 @@ static int _lvtargettype_disp(struct dm_report *rh, struct dm_pool *mem,
|
||||
|
||||
return _string_disp(rh, mem, field, &target_type, private);
|
||||
}
|
||||
*/
|
||||
|
||||
static int _thinzero_disp(struct dm_report *rh, struct dm_pool *mem,
|
||||
struct dm_report_field *field,
|
||||
|
Loading…
Reference in New Issue
Block a user