* [PATCH] pvcreate: Create a bootloader embedding area by default
@ 2013-09-26 7:33 Gabriel de Perthuis
2013-09-27 9:59 ` Peter Rajnoha
0 siblings, 1 reply; 3+ messages in thread
From: Gabriel de Perthuis @ 2013-09-26 7:33 UTC (permalink / raw)
To: lvm-devel
Default to 1M, to match the amount available to the bootloader on a
partition table with modern alignment constraints.
---
lib/config/defaults.h | 1 +
lib/metadata/metadata.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index d200331..2f5d17d 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -103,10 +103,11 @@
#define DEFAULT_MAX_LV 0
#define DEFAULT_ALLOC_POLICY ALLOC_NORMAL
#define DEFAULT_MIRROR_LOGS_REQUIRE_SEPARATE_PVS 0
#define DEFAULT_MAXIMISE_CLING 1
#define DEFAULT_CLUSTERED 0
+#define DEFAULT_BOOTLOADERAREASIZE 2048 /* sectors */
#define DEFAULT_MSG_PREFIX " "
#define DEFAULT_CMD_NAME 0
#define DEFAULT_OVERWRITE 0
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 1e34f83..c351741 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -1435,11 +1435,11 @@ void pvcreate_params_set_defaults(struct pvcreate_params *pp)
pp->yes = 0;
pp->metadataignore = DEFAULT_PVMETADATAIGNORE;
pp->rp.restorefile = 0;
pp->rp.idp = 0;
pp->rp.ba_start = 0;
- pp->rp.ba_size = 0;
+ pp->rp.ba_size = DEFAULT_BOOTLOADERAREASIZE;
pp->rp.pe_start = PV_PE_START_CALC;
pp->rp.extent_count = 0;
pp->rp.extent_size = 0;
}
--
1.8.4.25.g05e4ae6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] pvcreate: Create a bootloader embedding area by default
2013-09-26 7:33 [PATCH] pvcreate: Create a bootloader embedding area by default Gabriel de Perthuis
@ 2013-09-27 9:59 ` Peter Rajnoha
2013-09-27 10:16 ` Gabriel de Perthuis
0 siblings, 1 reply; 3+ messages in thread
From: Peter Rajnoha @ 2013-09-27 9:59 UTC (permalink / raw)
To: lvm-devel
On 09/26/2013 09:33 AM, Gabriel de Perthuis wrote:
> Default to 1M, to match the amount available to the bootloader on a
> partition table with modern alignment constraints.
Well, I'd really prefer having this on-demand only by explicit use of
"pvcreate --bootloaderareasize". The bootloader area is supposed to
be used in specific situations only and we normally don't want it to
be created for all PVs by default...
Peter
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] pvcreate: Create a bootloader embedding area by default
2013-09-27 9:59 ` Peter Rajnoha
@ 2013-09-27 10:16 ` Gabriel de Perthuis
0 siblings, 0 replies; 3+ messages in thread
From: Gabriel de Perthuis @ 2013-09-27 10:16 UTC (permalink / raw)
To: lvm-devel
> On 09/26/2013 09:33 AM, Gabriel de Perthuis wrote:
>> Default to 1M, to match the amount available to the bootloader on a
>> partition table with modern alignment constraints.
>
> Well, I'd really prefer having this on-demand only by explicit use of
> "pvcreate --bootloaderareasize". The bootloader area is supposed to
> be used in specific situations only and we normally don't want it to
> be created for all PVs by default...
There isn't any support for adding the area to existing PVs (though
there is enough room). I don't see a downside to having the area ready
in case it's needed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-27 10:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 7:33 [PATCH] pvcreate: Create a bootloader embedding area by default Gabriel de Perthuis
2013-09-27 9:59 ` Peter Rajnoha
2013-09-27 10:16 ` Gabriel de Perthuis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.