1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-01 00:23:49 +03:00

Switch status from 32-bit to 64-bit

The physical_volume, volume_group, logical_volume and lv_segment
structures' 'status' member is now uint64_t.

The alignment of these structures was also audited to remove holes.  The
movement of some members in 'volume_group' and 'lv_segment' eliminates
holes.  The 'physical_volume' structure still has one 4-byte hole after
'pe_size'; the other structures no longer have any holes.  Each
structures' size has not changed.
This commit is contained in:
Mike Snitzer
2009-11-24 22:55:55 +00:00
parent b1bee9cd52
commit a2552d4f59
15 changed files with 70 additions and 69 deletions

View File

@@ -1037,7 +1037,7 @@ static int _scan_file(const struct format_type *fmt)
const char *vgname_from_mda(const struct format_type *fmt,
struct device_area *dev_area, struct id *vgid,
uint32_t *vgstatus, char **creation_host,
uint64_t *vgstatus, char **creation_host,
uint64_t *mda_free_sectors)
{
struct raw_locn *rlocn;
@@ -1146,7 +1146,7 @@ static int _scan_raw(const struct format_type *fmt)
struct volume_group *vg;
struct format_instance fid;
struct id vgid;
uint32_t vgstatus;
uint64_t vgstatus;
raw_list = &((struct mda_lists *) fmt->private)->raws;