Version 2.02.75 -
=====================================
+ Rename 'flags' to 'status' in struct metadata_area.
Avoid segfault by limiting partial mode for lvm1 metadata. (2.02.74)
Add dm_zalloc and use it and dm_pool_zalloc throughout.
Add pv_get_property and create generic internal _get_property function.
mda->ops = &_metadata_format1_ops;
mda->metadata_locn = NULL;
- mda->flags = 0;
+ mda->status = 0;
dm_list_add(&fid->metadata_areas_in_use, &mda->list);
return fid;
mda->ops = &_metadata_format_pool_ops;
mda->metadata_locn = NULL;
- mda->flags = 0;
+ mda->status = 0;
dm_list_add(&fid->metadata_areas_in_use, &mda->list);
return fid;
return_NULL;
mda->ops = &_metadata_text_file_backup_ops;
mda->metadata_locn = context;
- mda->flags = 0;
+ mda->status = 0;
fid_add_mda(fid, mda);
} else {
dir_list = &((struct mda_lists *) fmt->private)->dirs;
return_NULL;
mda->ops = &_metadata_text_file_ops;
mda->metadata_locn = context;
- mda->flags = 0;
+ mda->status = 0;
fid_add_mda(fid, mda);
}
/* FIXME Allow multiple dev_areas inside area */
memcpy(&mdac->area, &rl->dev_area, sizeof(mdac->area));
mda->ops = &_metadata_text_raw_ops;
- mda->flags = 0;
+ mda->status = 0;
/* FIXME MISTAKE? mda->metadata_locn = context; */
fid_add_mda(fid, mda);
}
mdal->ops = mda_lists->raw_ops;
mdal->metadata_locn = mdac;
- mdal->flags = 0;
+ mdal->status = 0;
mdac->area.dev = dev;
mdac->area.start = start;
unsigned mda_is_ignored(struct metadata_area *mda)
{
- return (mda->flags & MDA_IGNORED);
+ return (mda->status & MDA_IGNORED);
}
void mda_set_ignored(struct metadata_area *mda, unsigned mda_ignored)
unsigned old_mda_ignored = mda_is_ignored(mda);
if (mda_ignored && !old_mda_ignored)
- mda->flags |= MDA_IGNORED;
+ mda->status |= MDA_IGNORED;
else if (!mda_ignored && old_mda_ignored)
- mda->flags &= ~MDA_IGNORED;
+ mda->status &= ~MDA_IGNORED;
else
return; /* No change */
struct dm_list list;
struct metadata_area_ops *ops;
void *metadata_locn;
- uint32_t flags;
+ uint32_t status;
};
struct metadata_area *mda_copy(struct dm_pool *mem,
struct metadata_area *mda);