All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mount: parse default values correctly
@ 2021-01-06 18:40 Steve Dickson
  2021-01-07 16:03 ` Steve Dickson
  2021-01-28 23:39 ` NeilBrown
  0 siblings, 2 replies; 6+ messages in thread
From: Steve Dickson @ 2021-01-06 18:40 UTC (permalink / raw)
  To: Linux NFS Mailing list

Commit 88c22f92 converted the configfile.c routines
to use the parse_opt interfaces which broke how
default values from nfsmount.conf are managed.

Default values can not be added to the mount string
handed to the kernel. They must be interpreted into
the correct mount options then passed to the kernel.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1912877

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 utils/mount/configfile.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/utils/mount/configfile.c b/utils/mount/configfile.c
index 7934f4f..e865998 100644
--- a/utils/mount/configfile.c
+++ b/utils/mount/configfile.c
@@ -277,8 +277,10 @@ conf_parse_mntopts(char *section, char *arg, struct mount_options *options)
 		}
 		if (buf[0] == '\0')
 			continue;
+		if (default_value(buf))
+			continue;
+
 		po_append(options, buf);
-		default_value(buf);
 	}
 	conf_free_list(list);
 }
-- 
2.29.2


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 18:40 [PATCH] mount: parse default values correctly Steve Dickson
2021-01-07 16:03 ` Steve Dickson
2021-01-28 23:39 ` NeilBrown
2021-01-28 23:40   ` [PATCH nfs-utils] mount: fix parsing of default options NeilBrown
2021-02-01  5:00     ` [PATCH nfs-utils v2] " NeilBrown
2021-02-02 17:00       ` Steve Dickson

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.