All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriel de Perthuis <g2p.code@gmail.com>
To: lvm-devel@redhat.com
Subject: [PATCH] pvcreate: Create a bootloader embedding area by default
Date: Thu, 26 Sep 2013 09:33:44 +0200	[thread overview]
Message-ID: <1380180824-17931-1-git-send-email-g2p.code@gmail.com> (raw)

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



             reply	other threads:[~2013-09-26  7:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26  7:33 Gabriel de Perthuis [this message]
2013-09-27  9:59 ` [PATCH] pvcreate: Create a bootloader embedding area by default Peter Rajnoha
2013-09-27 10:16   ` Gabriel de Perthuis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1380180824-17931-1-git-send-email-g2p.code@gmail.com \
    --to=g2p.code@gmail.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.