mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
Fix partition table processing after sparc changes (introduced in 2.02.16).
Fix cmdline PE range processing segfault (introduced in 2.02.13).
This commit is contained in:
parent
6ae178f91c
commit
b1ab8b00b8
@ -1,5 +1,7 @@
|
|||||||
Version 2.02.19 -
|
Version 2.02.19 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix partition table processing after sparc changes (2.02.16).
|
||||||
|
Fix cmdline PE range processing segfault (2.02.13).
|
||||||
Some libdevmapper-event interface changes.
|
Some libdevmapper-event interface changes.
|
||||||
Report dmeventd mirror monitoring status.
|
Report dmeventd mirror monitoring status.
|
||||||
Fix dmeventd mirror status line processing.
|
Fix dmeventd mirror status line processing.
|
||||||
|
@ -72,7 +72,7 @@ static int _has_partition_table(struct device *dev)
|
|||||||
/* Check for msdos partition table */
|
/* Check for msdos partition table */
|
||||||
part_magic = buf + PART_MAGIC_OFFSET/sizeof(buf[0]);
|
part_magic = buf + PART_MAGIC_OFFSET/sizeof(buf[0]);
|
||||||
if ((*part_magic == xlate16(PART_MAGIC))) {
|
if ((*part_magic == xlate16(PART_MAGIC))) {
|
||||||
part = (struct partition *) (buf + PART_OFFSET);
|
part = (struct partition *) (buf + PART_OFFSET/sizeof(buf[0]));
|
||||||
for (p = 0; p < 4; p++, part++) {
|
for (p = 0; p < 4; p++, part++) {
|
||||||
/* Table is invalid if boot indicator not 0 or 0x80 */
|
/* Table is invalid if boot indicator not 0 or 0x80 */
|
||||||
if ((part->boot_ind & 0x7f)) {
|
if ((part->boot_ind & 0x7f)) {
|
||||||
|
@ -993,7 +993,7 @@ static int _create_pv_entry(struct dm_pool *mem, struct pv_list *pvl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Determine selected physical extents */
|
/* Determine selected physical extents */
|
||||||
if (!_parse_pes(mem, colon, pe_ranges, dev_name(pvl->pv->dev),
|
if (!_parse_pes(mem, colon, new_pvl->pe_ranges, dev_name(pvl->pv->dev),
|
||||||
pvl->pv->pe_count)) {
|
pvl->pv->pe_count)) {
|
||||||
stack;
|
stack;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user