mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! partition: reparse tables only if CONFIG_PARTITION_MANIPULATION=y
Date: Wed, 15 May 2024 11:24:46 +0200	[thread overview]
Message-ID: <20240515092446.80738-1-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20240515080507.4056255-3-a.fatoum@pengutronix.de>

partitions: add prompt and help text for CONFIG_PARTITION_MANIPULATION

So far, CONFIG_PARTITION_MANIPULATION was only selected by
CONFIG_CMD_PARTED and influenced repartitioning support.

Now that it's used to guard the feature of reparsing partition tables,
it makes sense to give it a help text and a prompt for devlopment usage.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 common/Kconfig | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/common/Kconfig b/common/Kconfig
index 97a03217eac9..67cbbf5197da 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -888,7 +888,15 @@ config PARTITION
 	prompt "Enable Partitions"
 
 config PARTITION_MANIPULATION
-	bool
+	bool "Runtime reparsing of partition table" if COMPILE_TEST
+	help
+	  Say y here to have barebox reparse the partition table automatically
+	  when it's rewritten. This is useful when using the parted command
+	  or when writing full disk images that change the existing partitions.
+
+	  Reparsing the partition table will delete existing partitions and thus
+	  may break users that don't do proper reference counting. For this
+	  reason, this option is currently disabled by default.
 
 source "common/partitions/Kconfig"
 
-- 
2.39.2




  reply	other threads:[~2024-05-15  9:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-15  8:05 [PATCH master 1/3] cdev: return error code from cdev_close Ahmad Fatoum
2024-05-15  8:05 ` [PATCH master 2/3] fs: devfs: restore cdev reference count maintenance Ahmad Fatoum
2024-05-15  8:05 ` [PATCH master 3/3] partition: reparse tables only if CONFIG_PARTITION_MANIPULATION=y Ahmad Fatoum
2024-05-15  9:24   ` Ahmad Fatoum [this message]
2024-05-16  7:13 ` [PATCH master 1/3] cdev: return error code from cdev_close Sascha Hauer

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=20240515092446.80738-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox