mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Terminate pv_attr field correctly. (2.02.86)
This commit is contained in:
parent
8010df8b8a
commit
1abaaab1bc
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.89 -
|
Version 2.02.89 -
|
||||||
==================================
|
==================================
|
||||||
|
Terminate pv_attr field correctly. (2.02.86)
|
||||||
Fix 'not not' typo in pvcreate man page.
|
Fix 'not not' typo in pvcreate man page.
|
||||||
Improve man page style for fsadm, lvreduce, lvremove, lvrename, lvresize.
|
Improve man page style for fsadm, lvreduce, lvremove, lvrename, lvresize.
|
||||||
Support break for vgchange and vgrefresh operation.
|
Support break for vgchange and vgrefresh operation.
|
||||||
|
@ -190,7 +190,7 @@ char *pv_attr_dup(struct dm_pool *mem, const struct physical_volume *pv)
|
|||||||
{
|
{
|
||||||
char *repstr;
|
char *repstr;
|
||||||
|
|
||||||
if (!(repstr = dm_pool_zalloc(mem, 3))) {
|
if (!(repstr = dm_pool_zalloc(mem, 4))) {
|
||||||
log_error("dm_pool_alloc failed");
|
log_error("dm_pool_alloc failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -198,6 +198,7 @@ char *pv_attr_dup(struct dm_pool *mem, const struct physical_volume *pv)
|
|||||||
repstr[0] = (pv->status & ALLOCATABLE_PV) ? 'a' : '-';
|
repstr[0] = (pv->status & ALLOCATABLE_PV) ? 'a' : '-';
|
||||||
repstr[1] = (pv->status & EXPORTED_VG) ? 'x' : '-';
|
repstr[1] = (pv->status & EXPORTED_VG) ? 'x' : '-';
|
||||||
repstr[2] = (pv->status & MISSING_PV) ? 'm' : '-';
|
repstr[2] = (pv->status & MISSING_PV) ? 'm' : '-';
|
||||||
|
|
||||||
return repstr;
|
return repstr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user