Skip to contentSkip to conversation

dev-mornfall-activate - refactor: rename embedding area -> bootloader area

PATCH Petr Rockai 1 participant 1 message Jun 4, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=732859d21f3b41bdb188f92b60f25d5c94dcee8a
Commit:        732859d21f3b41bdb188f92b60f25d5c94dcee8a
Parent:        9966842810b9044d0a59eebbf05856a3a10102b4
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Tue May 28 12:37:22 2013 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Tue May 28 12:37:22 2013 +0200

refactor: rename embedding area -> bootloader area

---
 WHATS_NEW                        |    6 ++--
 lib/cache/lvmcache.c             |   58 +++++++++++++++++-----------------
 lib/cache/lvmcache.h             |    8 ++--
 lib/cache/lvmetad.c              |   10 +++---
 lib/format1/format1.c            |    6 ++--
 lib/format_text/export.c         |    6 ++--
 lib/format_text/format-text.c    |   64 +++++++++++++++++++-------------------
 lib/format_text/format-text.h    |    4 +-
 lib/format_text/import_vsn1.c    |   22 ++++++------
 lib/format_text/layout.h         |    4 +-
 lib/format_text/text_label.c     |   48 ++++++++++++++--------------
 lib/metadata/metadata-exported.h |    6 ++--
 lib/metadata/metadata.c          |    4 +-
 lib/metadata/pv.c                |    8 ++--
 lib/metadata/pv.h                |   10 +++---
 lib/report/columns.h             |    4 +-
 lib/report/properties.c          |    8 ++--
 man/pvcreate.8.in                |   18 +++++-----
 man/vgconvert.8.in               |    2 +-
 tools/args.h                     |    2 +-
 tools/commands.h                 |    8 ++--
 tools/pvcreate.c                 |    4 +-
 tools/toollib.c                  |   12 +++---
 tools/vgconvert.c                |   14 ++++----
 24 files changed, 168 insertions(+), 168 deletions(-)
WHATS_NEW +3 -3
index 3b88732..977519c 100644
@@ -38,9 +38,9 @@ Version 2.02.99 -
   Add --withcomments and --withversions switch to lvm dumpconfig.
   Add --type {current|default|missing|new} and --atversion to lvm dumpconfig.
   Support automatic config validation and add 'config' section to lvm.conf.
-  Add pvs -o ea_start,ea_size to report embedding area start and size.
-  Add --embeddingareasize to pvcreate and vgconvert to create an embedding area.
-  Add PV header extension: extension version, flags and embedding areas.
+  Add pvs -o ea_start,ea_size to report bootloader area start and size.
+  Add --bootloaderareasize to pvcreate and vgconvert to create a bootloader area.
+  Add PV header extension: extension version, flags and bootloader areas.
   Initial support for lvconvert of thin external origin.
   Add _lv_remove_segs_using_this_lv() for removal of dependent lvs.
   Improve activation code for better support of stacked devices.
lib/cache/lvmcache.c +29 -29

115 lines not on this page · raw message

lib/cache/lvmcache.h +4 -4
index 9ceec19..119b411 100644
@@ -118,11 +118,11 @@ int lvmcache_populate_pv_fields(struct lvmcache_info *info,
 int lvmcache_check_format(struct lvmcache_info *info, const struct format_type *fmt);
 void lvmcache_del_mdas(struct lvmcache_info *info);
 void lvmcache_del_das(struct lvmcache_info *info);
-void lvmcache_del_eas(struct lvmcache_info *info);
+void lvmcache_del_bas(struct lvmcache_info *info);
 int lvmcache_add_mda(struct lvmcache_info *info, struct device *dev,
 		     uint64_t start, uint64_t size, unsigned ignored);
 int lvmcache_add_da(struct lvmcache_info *info, uint64_t start, uint64_t size);
-int lvmcache_add_ea(struct lvmcache_info *info, uint64_t start, uint64_t size);
+int lvmcache_add_ba(struct lvmcache_info *info, uint64_t start, uint64_t size);
 
 const struct format_type *lvmcache_fmt(struct lvmcache_info *info);
 struct label *lvmcache_get_label(struct lvmcache_info *info);
@@ -130,7 +130,7 @@ struct label *lvmcache_get_label(struct lvmcache_info *info);
 void lvmcache_update_pv(struct lvmcache_info *info, struct physical_volume *pv,
 			const struct format_type *fmt);
 int lvmcache_update_das(struct lvmcache_info *info, struct physical_volume *pv);
-int lvmcache_update_eas(struct lvmcache_info *info, struct physical_volume *pv);
+int lvmcache_update_bas(struct lvmcache_info *info, struct physical_volume *pv);
 int lvmcache_foreach_mda(struct lvmcache_info *info,
 			 int (*fun)(struct metadata_area *, void *),
 			 void *baton);
@@ -139,7 +139,7 @@ int lvmcache_foreach_da(struct lvmcache_info *info,
 			int (*fun)(struct disk_locn *, void *),
 			void *baton);
 
-int lvmcache_foreach_ea(struct lvmcache_info *info,
+int lvmcache_foreach_ba(struct lvmcache_info *info,
 			int (*fun)(struct disk_locn *, void *),
 			void *baton);
 
lib/cache/lvmetad.c +5 -5
index 348827d..7aa8641 100644
@@ -280,7 +280,7 @@ static struct lvmcache_info *_pv_populate_lvmcache(
 	lvmcache_set_device_size(info, devsize);
 	lvmcache_del_das(info);
 	lvmcache_del_mdas(info);
-	lvmcache_del_eas(info);
+	lvmcache_del_bas(info);
 
 	do {
 		sprintf(mda_id, "mda%d", i);
@@ -309,7 +309,7 @@ static struct lvmcache_info *_pv_populate_lvmcache(
 		if (da) {
 			if (!dm_config_get_uint64(da->child, "offset", &offset)) return_0;
 			if (!dm_config_get_uint64(da->child, "size", &size)) return_0;
-			lvmcache_add_ea(info, offset, size);
+			lvmcache_add_ba(info, offset, size);
 		}
 		++i;
 	} while (da);
@@ -706,9 +706,9 @@ static int _extract_da(struct disk_locn *da, void *baton)
 	return _extract_disk_location("da", da, baton);
 }
 
-static int _extract_ea(struct disk_locn *ea, void *baton)
+static int _extract_ba(struct disk_locn *ba, void *baton)
 {
-	return _extract_disk_location("ea", ea, baton);
+	return _extract_disk_location("ba", ba, baton);
 }
 
 static int _extract_mdas(struct lvmcache_info *info, struct dm_config_tree *cft,
@@ -722,7 +722,7 @@ static int _extract_mdas(struct lvmcache_info *info, struct dm_config_tree *cft,
 	if (!lvmcache_foreach_da(info, &_extract_da, &baton))
 		return 0;
 	baton.i = 0;
-	if (!lvmcache_foreach_ea(info, &_extract_ea, &baton))
+	if (!lvmcache_foreach_ba(info, &_extract_ba, &baton))
 		return 0;
 
 	return 1;
lib/format1/format1.c +3 -3
index 115f8d1..7014a35 100644
@@ -384,8 +384,8 @@ static int _format1_pv_setup(const struct format_type *fmt,
 	struct pvcreate_restorable_params rp = {.restorefile = NULL,
 						.id = {{0}},
 						.idp = NULL,
-						.ea_start = 0,
-						.ea_size = 0,
+						.ba_start = 0,
+						.ba_size = 0,
 						.pe_start = 0,
 						.extent_count = 0,
 						.extent_size = vg->extent_size};
@@ -430,7 +430,7 @@ static int _format1_pv_write(const struct format_type *fmt, struct physical_volu
 	lvmcache_update_pv(info, pv, fmt);
 	lvmcache_del_mdas(info);
 	lvmcache_del_das(info);
-	lvmcache_del_eas(info);
+	lvmcache_del_bas(info);
 
 	dm_list_init(&pvs);
 
lib/format_text/export.c +3 -3
index 6d83106..73b5a3a 100644
@@ -490,9 +490,9 @@ static int _print_pvs(struct formatter *f, struct volume_group *vg)
 		outsize(f, vg->extent_size * (uint64_t) pv->pe_count,
 			"pe_count = %u", pv->pe_count);
 
-		if (pv->ea_start && pv->ea_size) {
-			outf(f, "ea_start = %" PRIu64, pv->ea_start);
-			outsize(f, pv->ea_size, "ea_size = %" PRIu64, pv->ea_size);
+		if (pv->ba_start && pv->ba_size) {
+			outf(f, "ba_start = %" PRIu64, pv->ba_start);
+			outsize(f, pv->ba_size, "ba_size = %" PRIu64, pv->ba_size);
 		}
 
 		_dec_indent(f);
lib/format_text/format-text.c +32 -32

134 lines not on this page · raw message

lib/format_text/format-text.h +2 -2
index 4706313..7d2543d 100644
@@ -58,9 +58,9 @@ int pvhdr_read(struct device *dev, char *buf);
 int add_da(struct dm_pool *mem, struct dm_list *das,
 	   uint64_t start, uint64_t size);
 void del_das(struct dm_list *das);
-int add_ea(struct dm_pool *mem, struct dm_list *eas,
+int add_ba(struct dm_pool *mem, struct dm_list *eas,
 	   uint64_t start, uint64_t size);
-void del_eas(struct dm_list *eas);
+void del_bas(struct dm_list *eas);
 int add_mda(const struct format_type *fmt, struct dm_pool *mem, struct dm_list *mdas,
 	    struct device *dev, uint64_t start, uint64_t size, unsigned ignored);
 void del_mdas(struct dm_list *mdas);
lib/format_text/import_vsn1.c +11 -11
index d5b5a73..852f2c5 100644
@@ -165,7 +165,7 @@ static int _read_pv(struct format_instance *fid,
 	struct physical_volume *pv;
 	struct pv_list *pvl;
 	const struct dm_config_value *cv;
-	uint64_t size, ea_start;
+	uint64_t size, ba_start;
 
 	if (!(pvl = dm_pool_zalloc(mem, sizeof(*pvl))) ||
 	    !(pvl->pv = dm_pool_zalloc(mem, sizeof(*pvl->pv))))
@@ -246,19 +246,19 @@ static int _read_pv(struct format_instance *fid,
 		return 0;
 	}
 
-	/* Embedding area is not compulsory - just log_debug if not found. */
-	ea_start = size = 0;
-	if (!_read_uint64(pvn, "ea_start", &ea_start))
-		log_debug("PV Embedding Area start value (ea_start) not found.");
-	if (!_read_uint64(pvn, "ea_size", &size))
-		log_debug("PV Embedding Area size (ea_size) not found.");
-	if ((!ea_start && size) || (ea_start && !size)) {
-		log_error("Incomplete embedding area specification for "
+	/* Bootloader area is not compulsory - just log_debug if not found. */
+	ba_start = size = 0;
+	if (!_read_uint64(pvn, "ba_start", &ba_start))
+		log_debug("PV Bootloader Area start value (ba_start) not found.");
+	if (!_read_uint64(pvn, "ba_size", &size))
+		log_debug("PV Bootloader Area size (ba_size) not found.");
+	if ((!ba_start && size) || (ba_start && !size)) {
+		log_error("Incomplete bootloader area specification for "
 			  "physical volume.");
 		return 0;
 	} else {
-		pv->ea_start = ea_start;
-		pv->ea_size = size;
+		pv->ba_start = ba_start;
+		pv->ba_size = size;
 	}
 
 	dm_list_init(&pv->tags);
lib/format_text/layout.h +2 -2
index 14f9930..6fb3e49 100644
@@ -28,8 +28,8 @@
 struct pv_header_extension {
 	uint32_t version;
 	uint32_t flags;
-	/* NULL-terminated list of embedding areas */
-	struct disk_locn embedding_areas_xl[0];
+	/* NULL-terminated list of bootloader areas */
+	struct disk_locn bootloader_areas_xl[0];
 } __attribute__ ((packed));
 
 /* Fields with the suffix _xl should be xlate'd wherever they appear */
lib/format_text/text_label.c +24 -24

106 lines not on this page · raw message

lib/metadata/metadata-exported.h +3 -3
index cd82368..f698b33 100644
@@ -109,7 +109,7 @@
 #define FMT_RESIZE_PV		0x00000080U	/* Supports pvresize? */
 #define FMT_UNLIMITED_STRIPESIZE 0x00000100U	/* Unlimited stripe size? */
 #define FMT_RESTRICTED_READAHEAD 0x00000200U	/* Readahead restricted to 2-120? */
-#define FMT_EAS			0x000000400U	/* Supports embedding areas? */
+#define FMT_BAS			0x000000400U	/* Supports bootloader areas? */
 
 /* Mirror conversion type flags */
 #define MIRROR_BY_SEG		0x00000001U	/* segment-by-segment mirror */
@@ -401,8 +401,8 @@ struct pvcreate_restorable_params {
 	const char *restorefile; /* 0 if no --restorefile option */
 	struct id id; /* FIXME: redundant */
 	struct id *idp; /* 0 if no --uuid option */
-	uint64_t ea_start;
-	uint64_t ea_size;
+	uint64_t ba_start;
+	uint64_t ba_size;
 	uint64_t pe_start;
 	uint32_t extent_count;
 	uint32_t extent_size;
lib/metadata/metadata.c +2 -2
index 78841c3..351d157 100644
@@ -1414,8 +1414,8 @@ void pvcreate_params_set_defaults(struct pvcreate_params *pp)
 	pp->metadataignore = DEFAULT_PVMETADATAIGNORE;
 	pp->rp.restorefile = 0;
 	pp->rp.idp = 0;
-	pp->rp.ea_start = 0;
-	pp->rp.ea_size = 0;
+	pp->rp.ba_start = 0;
+	pp->rp.ba_size = 0;
 	pp->rp.pe_start = PV_PE_START_CALC;
 	pp->rp.extent_count = 0;
 	pp->rp.extent_size = 0;
lib/metadata/pv.c +4 -4
index 6c165a8..dad747c 100644
@@ -124,14 +124,14 @@ uint32_t pv_pe_size(const struct physical_volume *pv)
 	return pv_field(pv, pe_size);
 }
 
-uint64_t pv_ea_start(const struct physical_volume *pv)
+uint64_t pv_ba_start(const struct physical_volume *pv)
 {
-	return pv_field(pv, ea_start);
+	return pv_field(pv, ba_start);
 }
 
-uint64_t pv_ea_size(const struct physical_volume *pv)
+uint64_t pv_ba_size(const struct physical_volume *pv)
 {
-	return pv_field(pv, ea_size);
+	return pv_field(pv, ba_size);
 }
 
 uint64_t pv_pe_start(const struct physical_volume *pv)
lib/metadata/pv.h +5 -5
index 6db9d87..c018f38 100644
@@ -43,9 +43,9 @@ struct physical_volume {
 	uint64_t status;
 	uint64_t size;
 
-	/* embedding area */
-	uint64_t ea_start;
-	uint64_t ea_size;
+	/* bootloader area */
+	uint64_t ba_start;
+	uint64_t ba_size;
 
 	/* physical extents */
 	uint32_t pe_size;
@@ -80,8 +80,8 @@ uint64_t pv_free(const struct physical_volume *pv);
 uint64_t pv_status(const struct physical_volume *pv);
 uint32_t pv_pe_size(const struct physical_volume *pv);
 uint64_t pv_pe_start(const struct physical_volume *pv);
-uint64_t pv_ea_start(const struct physical_volume *pv);
-uint64_t pv_ea_size(const struct physical_volume *pv);
+uint64_t pv_ba_start(const struct physical_volume *pv);
+uint64_t pv_ba_size(const struct physical_volume *pv);
 uint32_t pv_pe_count(const struct physical_volume *pv);
 uint32_t pv_pe_alloc_count(const struct physical_volume *pv);
 uint64_t pv_mda_size(const struct physical_volume *pv);
lib/report/columns.h +2 -2
index 201b3c4..6754e6e 100644
@@ -112,8 +112,8 @@ FIELD(PVS, pv, NUM, "Alloc", pe_alloc_count, 5, uint32, pv_pe_alloc_count, "Tota
 FIELD(PVS, pv, STR, "PV Tags", tags, 7, tags, pv_tags, "Tags, if any.", 0)
 FIELD(PVS, pv, NUM, "#PMda", id, 5, pvmdas, pv_mda_count, "Number of metadata areas on this device.", 0)
 FIELD(PVS, pv, NUM, "#PMdaUse", id, 8, pvmdasused, pv_mda_used_count, "Number of metadata areas in use on this device.", 0)
-FIELD(PVS, pv, NUM, "EA start", ea_start, 8, size64, ea_start, "Offset to the start of Embedding Area on the underlying device.", 0)
-FIELD(PVS, pv, NUM, "EA size", ea_size, 7, size64, ea_size, "Size of Embedding Area in current units.", 0)
+FIELD(PVS, pv, NUM, "BA start", ba_start, 8, size64, ba_start, "Offset to the start of PV Bootloader Area on the underlying device.", 0)
+FIELD(PVS, pv, NUM, "BA size", ba_size, 7, size64, ba_size, "Size of PV Bootloader Area in current units.", 0)
 
 FIELD(VGS, vg, STR, "Fmt", cmd, 3, vgfmt, vg_fmt, "Type of metadata.", 0)
 FIELD(VGS, vg, STR, "VG UUID", id, 38, uuid, vg_uuid, "Unique identifier.", 0)
lib/report/properties.c +4 -4
index 03ebc6f..3073d2a 100644
@@ -175,10 +175,10 @@ GET_PV_NUM_PROPERTY_FN(pv_mda_count, pv_mda_count(pv))
 #define _pv_mda_count_set _not_implemented_set
 GET_PV_NUM_PROPERTY_FN(pv_mda_used_count, pv_mda_used_count(pv))
 #define _pv_mda_used_count_set _not_implemented_set
-GET_PV_NUM_PROPERTY_FN(ea_start, SECTOR_SIZE * pv->ea_start)
-#define _ea_start_set _not_implemented_set
-GET_PV_NUM_PROPERTY_FN(ea_size, SECTOR_SIZE * pv->ea_size)
-#define _ea_size_set _not_implemented_set
+GET_PV_NUM_PROPERTY_FN(ba_start, SECTOR_SIZE * pv->ba_start)
+#define _ba_start_set _not_implemented_set
+GET_PV_NUM_PROPERTY_FN(ba_size, SECTOR_SIZE * pv->ba_size)
+#define _ba_size_set _not_implemented_set
 
 /* LV */
 GET_LV_STR_PROPERTY_FN(lv_uuid, lv_uuid_dup(lv))
man/pvcreate.8.in +9 -9
index 1fda0ad..c3a652c 100644
@@ -12,7 +12,7 @@ pvcreate \- initialize a disk or partition for use by LVM
 .RB [ \-\-force ]]
 .RB [ \-y | \-\-yes ]
 .RB [ \-\-labelsector ]
-.RB [ \-\-embeddingareasize
+.RB [ \-\-bootloaderareasize
 .IR size ]
 .RB [ \-M | \-\-metadatatype
 .IR type ]
@@ -165,15 +165,15 @@ sector (sector 1).  This lets you use a different sector near the
 start of the disk (between 0 and 3 inclusive - see LABEL_SCAN_SECTORS
 in the source).  Use with care.
 .TP
-.B \-\-embeddingareasize \fIsize
-Create a separate embedding area of specified size besides PV's data
-area. The embedding area is an area of reserved space on the PV from
-which LVM2 will not allocate any extents and it's kept untouched for
-use with external tools to embed their own data or metadata. The start
-of the embedding area is always aligned, see also \fB--dataalignment\fP
-and \fB--dataalignmentoffset\fP. The embedding area size may eventually
+.B \-\-bootloaderareasize \fIsize
+Create a separate bootloader area of specified size besides PV's data
+area. The bootloader area is an area of reserved space on the PV from
+which LVM2 will not allocate any extents and it's kept untouched. This is
+primarily aimed for use with bootloaders to embed their own data or metadata.
+The start of the bootloader area is always aligned, see also \fB--dataalignment\fP
+and \fB--dataalignmentoffset\fP. The bootloader area size may eventually
 end up increased due to the alignment, but it's never less than the
-size that is requested. To see the embedding area start and size of
+size that is requested. To see the bootloader area start and size of
 an existing Physical Volume use \fBpvs -o +ea_start,ea_size\fP.
 .TP
 .B \-\-setphysicalvolumesize \fIsize
man/vgconvert.8.in +1 -1
index 6567a9e..1e182b6 100644
@@ -8,7 +8,7 @@ vgconvert \- convert volume group metadata format
 .RB [ \-t | \-\-test ]
 .RB [ \-v | \-\-verbose ]
 .RB [ \-\-labelsector ]
-.RB [ \-\-embeddingareasize
+.RB [ \-\-bootloaderareasize
 .IR size ]
 .RB [ \-M | \-\-metadatatype
 .IR type ]
tools/args.h +1 -1
index bfcc5b9..cdc4b3b 100644
@@ -26,7 +26,7 @@ arg(vgmetadatacopies_ARG, '\0', "vgmetadatacopies", metadatacopies_arg, 0)
 arg(metadatacopies_ARG, '\0', "metadatacopies", metadatacopies_arg, 0)
 arg(metadatasize_ARG, '\0', "metadatasize", size_mb_arg, 0)
 arg(metadataignore_ARG, '\0', "metadataignore", yes_no_arg, 0)
-arg(embeddingareasize_ARG, '\0', "embeddingareasize", size_mb_arg, 0)
+arg(bootloaderareasize_ARG, '\0', "bootloaderareasize", size_mb_arg, 0)
 arg(norestorefile_ARG, '\0', "norestorefile", NULL, 0)
 arg(restorefile_ARG, '\0', "restorefile", string_arg, 0)
 arg(labelsector_ARG, '\0', "labelsector", int_arg, 0)
tools/commands.h +4 -4
index 8950243..24f6512 100644
@@ -552,7 +552,7 @@ xx(pvcreate,
    "\t[-M|--metadatatype 1|2]" "\n"
    "\t[--pvmetadatacopies #copies]" "\n"
    "\t[--metadatasize MetadataSize[bBsSkKmMgGtTpPeE]]" "\n"
-   "\t[--embeddingareasize EmbeddingAreaSize[bBsSkKmMgGtTpPeE]]" "\n"
+   "\t[--bootloaderareasize BootLoaderAreaSize[bBsSkKmMgGtTpPeE]]" "\n"
    "\t[--dataalignment Alignment[bBsSkKmMgGtTpPeE]]" "\n"
    "\t[--dataalignmentoffset AlignmentOffset[bBsSkKmMgGtTpPeE]]" "\n"
    "\t[--setphysicalvolumesize PhysicalVolumeSize[bBsSkKmMgGtTpPeE]" "\n"
@@ -564,7 +564,7 @@ xx(pvcreate,
    "\t[--version] " "\n"
    "\tPhysicalVolume [PhysicalVolume...]\n",
 
-   dataalignment_ARG, dataalignmentoffset_ARG, embeddingareasize_ARG,
+   dataalignment_ARG, dataalignmentoffset_ARG, bootloaderareasize_ARG,
    force_ARG, test_ARG, labelsector_ARG, metadatatype_ARG,
    metadatacopies_ARG, metadatasize_ARG, metadataignore_ARG,
    norestorefile_ARG, physicalvolumesize_ARG, pvmetadatacopies_ARG,
@@ -810,13 +810,13 @@ xx(vgconvert,
    "\t[-M|--metadatatype 1|2]" "\n"
    "\t[--pvmetadatacopies #copies]" "\n"
    "\t[--metadatasize MetadataSize[bBsSkKmMgGtTpPeE]]" "\n"
-   "\t[--embeddingareasize EmbeddingAreaSize[bBsSkKmMgGtTpPeE]]" "\n"
+   "\t[--bootloaderareasize BootLoaderAreaSize[bBsSkKmMgGtTpPeE]]" "\n"
    "\t[-t|--test] " "\n"
    "\t[-v|--verbose] " "\n"
    "\t[--version] " "\n"
    "\tVolumeGroupName [VolumeGroupName...]\n",
 
-   force_ARG, test_ARG, labelsector_ARG, embeddingareasize_ARG,
+   force_ARG, test_ARG, labelsector_ARG, bootloaderareasize_ARG,
    metadatatype_ARG, metadatacopies_ARG, pvmetadatacopies_ARG,
    metadatasize_ARG )
 
tools/pvcreate.c +2 -2
index da51eec..91562d2 100644
@@ -71,8 +71,8 @@ static int pvcreate_restore_params_validate(struct cmd_context *cmd,
 				  uuid, pp->rp.restorefile);
 			return 0;
 		}
-		pp->rp.ea_start = pv_ea_start(existing_pvl->pv);
-		pp->rp.ea_size = pv_ea_size(existing_pvl->pv);
+		pp->rp.ba_start = pv_ba_start(existing_pvl->pv);
+		pp->rp.ba_size = pv_ba_size(existing_pvl->pv);
 		pp->rp.pe_start = pv_pe_start(existing_pvl->pv);
 		pp->rp.extent_size = pv_pe_size(existing_pvl->pv);
 		pp->rp.extent_count = pv_pe_count(existing_pvl->pv);
tools/toollib.c +6 -6
index e9be968..6e004f3 100644
@@ -1427,9 +1427,9 @@ int pvcreate_params_validate(struct cmd_context *cmd,
 		return 0;
 	}
 
-	if (!(cmd->fmt->features & FMT_EAS) &&
-	    arg_count(cmd, embeddingareasize_ARG)) {
-		log_error("Embedding area parameters only "
+	if (!(cmd->fmt->features & FMT_BAS) &&
+	    arg_count(cmd, bootloaderareasize_ARG)) {
+		log_error("Bootloader area parameters only "
 			  "apply to text format.");
 		return 0;
 	}
@@ -1498,8 +1498,8 @@ int pvcreate_params_validate(struct cmd_context *cmd,
 		return 0;
 	}
 
-	if (arg_sign_value(cmd, embeddingareasize_ARG, SIGN_NONE) == SIGN_MINUS) {
-		log_error("Embedding area size may not be negative");
+	if (arg_sign_value(cmd, bootloaderareasize_ARG, SIGN_NONE) == SIGN_MINUS) {
+		log_error("Bootloader area size may not be negative");
 		return 0;
 	}
 
@@ -1511,7 +1511,7 @@ int pvcreate_params_validate(struct cmd_context *cmd,
 	if (pp->pvmetadatacopies < 0)
 		pp->pvmetadatacopies = find_config_tree_int(cmd, metadata_pvmetadatacopies_CFG);
 
-	pp->rp.ea_size = arg_uint64_value(cmd, embeddingareasize_ARG, pp->rp.ea_size);
+	pp->rp.ba_size = arg_uint64_value(cmd, bootloaderareasize_ARG, pp->rp.ba_size);
 
 	return 1;
 }
tools/vgconvert.c +7 -7
index cdadd9a..b06fe34 100644
@@ -59,13 +59,13 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name,
 			    find_config_tree_int(cmd, metadata_pvmetadatacopies_CFG);
 	}
 
-	if (cmd->fmt->features & FMT_EAS) {
-		if (arg_sign_value(cmd, embeddingareasize_ARG, SIGN_NONE) == SIGN_MINUS) {
-			log_error("Embedding area size may not be negative");
+	if (cmd->fmt->features & FMT_BAS) {
+		if (arg_sign_value(cmd, bootloaderareasize_ARG, SIGN_NONE) == SIGN_MINUS) {
+			log_error("Bootloader area size may not be negative");
 			return EINVALID_CMD_LINE;
 		}
 
-		rp.ea_size = arg_uint64_value(cmd, embeddingareasize_ARG, UINT64_C(0));
+		rp.ba_size = arg_uint64_value(cmd, bootloaderareasize_ARG, UINT64_C(0));
 	}
 
 	if (!archive(vg)) {
@@ -232,9 +232,9 @@ int vgconvert(struct cmd_context *cmd, int argc, char **argv)
 		return EINVALID_CMD_LINE;
 	}
 
-	if (!(cmd->fmt->features & FMT_EAS) &&
-		arg_count(cmd, embeddingareasize_ARG)) {
-		log_error("Embedding area parameters only apply to text format");
+	if (!(cmd->fmt->features & FMT_BAS) &&
+		arg_count(cmd, bootloaderareasize_ARG)) {
+		log_error("Bootloader area parameters only apply to text format");
 		return EINVALID_CMD_LINE;
 	}