1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

reorder some status flag printing in gdbinit file.

This commit is contained in:
Jonathan Earl Brassow 2011-09-13 13:57:02 +00:00
parent eeef355887
commit 08c50a291e

View File

@ -189,6 +189,21 @@ define __status
set $_s_status = $_s_status & ~0x0000000400000000LU set $_s_status = $_s_status & ~0x0000000400000000LU
printf " RAID_IMAGE" printf " RAID_IMAGE"
end end
# if ($_s_status & MIRRORED)
if ($_s_status & 0x00008000U)
set $_s_status = $_s_status & ~0x00008000U
printf " MIRRORED"
end
# if ($_s_status & MIRROR_LOG)
if ($_s_status & 0x00020000U)
set $_s_status = $_s_status & ~0x00020000U
printf " MIRROR_LOG"
end
# if ($_s_status & MIRROR_IMAGE)
if ($_s_status & 0x00040000U)
set $_s_status = $_s_status & ~0x00040000U
printf " MIRROR_IMAGE"
end
# if ($_s_status & VISIBLE_LV) # if ($_s_status & VISIBLE_LV)
if ($_s_status & 0x00000040U) if ($_s_status & 0x00000040U)
printf " VISIBLE_LV" printf " VISIBLE_LV"
@ -226,21 +241,6 @@ define __status
set $_s_status = $_s_status & ~0x00004000U set $_s_status = $_s_status & ~0x00004000U
printf " LOCKED" printf " LOCKED"
end end
# if ($_s_status & MIRRORED)
if ($_s_status & 0x00008000U)
set $_s_status = $_s_status & ~0x00008000U
printf " MIRRORED"
end
# if ($_s_status & MIRROR_LOG)
if ($_s_status & 0x00020000U)
set $_s_status = $_s_status & ~0x00020000U
printf " MIRROR_LOG"
end
# if ($_s_status & MIRROR_IMAGE)
if ($_s_status & 0x00040000U)
set $_s_status = $_s_status & ~0x00040000U
printf " MIRROR_IMAGE"
end
# if ($_s_status & LV_NOTSYNCED) # if ($_s_status & LV_NOTSYNCED)
if ($_s_status & 0x00080000U) if ($_s_status & 0x00080000U)
set $_s_status = $_s_status & ~0x00080000U set $_s_status = $_s_status & ~0x00080000U