master - Revert "lvdisplay: dispaly correct status when underlying devs missing"
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9a88a9c4ce8fc930328e8d7d56fae8e964f8df02 Commit: 9a88a9c4ce8fc930328e8d7d56fae8e964f8df02 Parent: 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571 Author: David Teigland <[email protected]> AuthorDate: Fri Aug 28 13:26:50 2020 -0500 Committer: David Teigland <[email protected]> CommitterDate: Fri Aug 28 13:28:15 2020 -0500
Revert "lvdisplay: dispaly correct status when underlying devs missing"
This reverts commit 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571.
We should avoid adding anything new to lvdisplay and report new information via lvs reporting fields.
--- lib/display/display.c | 13 +++--------- lib/metadata/segtype.h | 1 - lib/raid/raid.c | 54 -------------------------------------------------- 3 files changed, 3 insertions(+), 65 deletions(-)
lib/display/display.c +3 -10
@@ -399,7 +399,7 @@ int lvdisplay_full(struct cmd_context *cmd, void *handle __attribute__((unused))) {struct lvinfo info; -int inkernel, snap_active =0 , partial =0 , raid_is_avail =1 ; +int inkernel, snap_active =0 ; char uuid[64] __attribute__((aligned(8)));const char *access_str;struct lv_segment *snap_seg =NULL , *mirror_seg =NULL ;
@@ -553,18 +553,11 @@ int lvdisplay_full(struct cmd_context *cmd,log_print ("LV VDO Pool name %s" ,seg_lv (seg,0 )->name); } -if (lv_is_partial (lv)) { - partial =1 ; -if (lv_is_raid (lv)) - raid_is_avail =raid_is_available (lv) ?1 :0 ; - } -if (inkernel && info.suspended)log_print ("LV Status suspended" );else if (activation ()) -log_print ("LV Status %savailable %s" , - (inkernel && raid_is_avail) ?"" :"NOT " , - partial ?"(partial)" :"" ); +log_print ("LV Status %savailable" , + inkernel ?"" :"NOT " );/********* FIXME lv_number log_print("LV # %u", lv->lv_number + 1);
lib/metadata/segtype.h +0 -1
@@ -326,7 +326,6 @@ struct segment_type *init_unknown_segtype(struct cmd_context *cmd,#ifdef RAID_INTERNAL int init_raid_segtypes (struct cmd_context *cmd,struct segtype_library *seglib); -bool raid_is_available (const struct logical_volume *lv);#endif #define THIN_FEATURE_DISCARDS (1U << 0)
lib/raid/raid.c +0 -54
60 lines not on this page · raw message