All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Ignore network devices used by NBD
       [not found] <CGME20240308143646eucas1p27188a613c06f17d0cca6e239622d5ee7@eucas1p2.samsung.com>
@ 2024-03-08 14:36 ` Łukasz Stelmach
  2024-04-17 17:10   ` patchwork-bot+connman
  0 siblings, 1 reply; 2+ messages in thread
From: Łukasz Stelmach @ 2024-03-08 14:36 UTC (permalink / raw)
  To: connman; +Cc: m.szyprowski, k.lewandowsk, Łukasz Stelmach

Add support for ignoring devices used by NBD to mount root the same way
ConnMan ignores devices used for NFS roots. nbdroot= nbddev= parameters
are used by Debian and Tizen initramfs scripts to configure NBD for
mounting as root device.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
---
 src/inet.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/inet.c b/src/inet.c
index 8a1e3423..5032cf25 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -5086,6 +5086,10 @@ static int get_nfs_server_ip(const char *cmdline_file, const char *pnp_file,
 	for (pp = args; *pp; pp++) {
 		if (!strcmp(*pp, "root=/dev/nfs"))
 			break;
+		if (!strncmp(*pp, "root=/dev/nbd", strlen("root=/dev/nbd")))
+			break;
+		if (!strncmp(*pp, "nbddev=", strlen("nbddev=")))
+			break;
 	}
 	/* no rootnfs found */
 	if (!*pp)
@@ -5095,6 +5099,8 @@ static int get_nfs_server_ip(const char *cmdline_file, const char *pnp_file,
 	for (pp = args; *pp; pp++) {
 		if (!strncmp(*pp, "nfsroot=", strlen("nfsroot=")))
 			break;
+		if (!strncmp(*pp, "nbdroot=", strlen("nbdroot=")))
+			break;
 	}
 	/* no nfsroot argument found */
 	if (!*pp)
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Ignore network devices used by NBD
  2024-03-08 14:36 ` [PATCH] Ignore network devices used by NBD Łukasz Stelmach
@ 2024-04-17 17:10   ` patchwork-bot+connman
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+connman @ 2024-04-17 17:10 UTC (permalink / raw)
  To: =?utf-8?q?=C5=81ukasz_Stelmach_=3Cl=2Estelmach=40samsung=2Ecom=3E?=
  Cc: connman, m.szyprowski, k.lewandowsk

Hello:

This patch was applied to connman.git (master)
by Denis Kenzior <denkenz@gmail.com>:

On Fri,  8 Mar 2024 15:36:30 +0100 you wrote:
> Add support for ignoring devices used by NBD to mount root the same way
> ConnMan ignores devices used for NFS roots. nbdroot= nbddev= parameters
> are used by Debian and Tizen initramfs scripts to configure NBD for
> mounting as root device.
> 
> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
> 
> [...]

Here is the summary with links:
  - Ignore network devices used by NBD
    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=45185bd4df16

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-17 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20240308143646eucas1p27188a613c06f17d0cca6e239622d5ee7@eucas1p2.samsung.com>
2024-03-08 14:36 ` [PATCH] Ignore network devices used by NBD Łukasz Stelmach
2024-04-17 17:10   ` patchwork-bot+connman

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.