mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Small fixes to pvdisplay --maps: 1) rename struct pv_segment vars from 'seg' to 'pvseg', 2) Change heading
This commit is contained in:
parent
4baa42be1c
commit
5a4ba89aad
@ -1,6 +1,6 @@
|
|||||||
Version 2.02.26 -
|
Version 2.02.26 -
|
||||||
=================================
|
=================================
|
||||||
Add --maps feature to pvdisplay, showing PE to LE mappings.
|
Add pvdisplay --maps implementation.
|
||||||
Fix vgcfgrestore man pg to show mandatory VG name and remove LVM1 options.
|
Fix vgcfgrestore man pg to show mandatory VG name and remove LVM1 options.
|
||||||
Fix vgrename man page to include UUID and be consistent with lvrename.
|
Fix vgrename man page to include UUID and be consistent with lvrename.
|
||||||
Add (experimental) OpenAIS support to clvmd.
|
Add (experimental) OpenAIS support to clvmd.
|
||||||
|
@ -260,26 +260,26 @@ void pvdisplay_colons(struct physical_volume *pv)
|
|||||||
|
|
||||||
void pvdisplay_segments(struct physical_volume *pv)
|
void pvdisplay_segments(struct physical_volume *pv)
|
||||||
{
|
{
|
||||||
struct pv_segment *seg;
|
struct pv_segment *pvseg;
|
||||||
|
|
||||||
log_print("--- Segments ---");
|
log_print("--- Physical Segments ---");
|
||||||
|
|
||||||
list_iterate_items(seg, &pv->segments) {
|
list_iterate_items(pvseg, &pv->segments) {
|
||||||
if (seg->len == pv->pe_count)
|
if (pvseg->len == pv->pe_count)
|
||||||
continue;
|
continue;
|
||||||
log_print("Physical extent %u to %u:",
|
log_print("Physical extent %u to %u:",
|
||||||
seg->pe, seg->pe + seg->len - 1);
|
pvseg->pe, pvseg->pe + pvseg->len - 1);
|
||||||
|
|
||||||
if (seg->lvseg) {
|
if (pvseg->lvseg) {
|
||||||
log_print(" Type\t\t%s",
|
log_print(" Type\t\t%s",
|
||||||
seg->lvseg->segtype->ops->name(seg->lvseg));
|
pvseg->lvseg->segtype->ops->name(pvseg->lvseg));
|
||||||
log_print(" Logical volume\t%s%s/%s",
|
log_print(" Logical volume\t%s%s/%s",
|
||||||
seg->lvseg->lv->vg->cmd->dev_dir,
|
pvseg->lvseg->lv->vg->cmd->dev_dir,
|
||||||
seg->lvseg->lv->vg->name,
|
pvseg->lvseg->lv->vg->name,
|
||||||
seg->lvseg->lv->name);
|
pvseg->lvseg->lv->name);
|
||||||
log_print(" Logical extents\t%d to %d",
|
log_print(" Logical extents\t%d to %d",
|
||||||
seg->lvseg->le, seg->lvseg->le +
|
pvseg->lvseg->le, pvseg->lvseg->le +
|
||||||
seg->lvseg->len - 1);
|
pvseg->lvseg->len - 1);
|
||||||
} else
|
} else
|
||||||
log_print(" FREE");
|
log_print(" FREE");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user