Allow users to disable mount option rewriting via norewriteopts mount option.
This was required in our case in order to allow mounting a filer which
inappropriately responded via the wrong interface.
Signed-off-by: Gregory Boyce <gregory.boyce@xxxxxxxxx>
---
utils/mount/stropts.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index df67fac..bbda754 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -534,6 +534,14 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options, int checkv4)
struct pmap mnt_pmap;
/*
+ * "norewriteopts" option bypasses the options rewriting
+ */
+ if (po_contains(options, "norewriteopts") == PO_FOUND) {
+ po_remove_all(options, "norewriteopts");
+ return 1;
+ }
+
+ /*
* Version and transport negotiation is not required
* and does not work for RDMA mounts.
*/
--
2.3.2 (Apple Git-55)
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html