summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2011-03-29 12:53:13 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2011-03-29 12:53:13 +0000
commit2d1175a8953890ee55d66f1bf0d6bebf56939916 (patch)
treeb582fcf41625eae63b51bcd8df316885b586004d /scripts
parent60c10a45ce9ff9e1378465868e48cf5bcee1fe99 (diff)
downloadlvm2-2d1175a8953890ee55d66f1bf0d6bebf56939916.tar.gz
gdbinit update
When doing lv_status_r on a sub_lv, do not climb the tree up past the starting point.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gdbinit8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/gdbinit b/scripts/gdbinit
index 2ae3a752a..7873f0b7f 100644
--- a/scripts/gdbinit
+++ b/scripts/gdbinit
@@ -31,6 +31,7 @@ printf "break lv_extend\n"
printf "break check_lv_segments\n"
printf "break text_import_areas\n"
printf "run --type raid1 -L 200M -n lv vg\n"
+printf "run -m1 -L 200M -n lv vg\n"
printf "lv_status_r lv\n"
printf "\n\n"
@@ -390,8 +391,15 @@ define __lv_status_r
if ($_s == $_seg_list_head)
if ($argc == 1)
+ __print_indent $indent 1
printf "[ No segments for %s ]\n", $_lv->name
end
+ __get_only_segment_using_this_lv $_seg $_lv
+
+ if ($_seg && $indent)
+ set $indent--
+ __lv_status_r $_lv $_seg
+ end
else
set $_seg = (struct lv_segment *)$_s
set $_type = 0x0