diff options
author | H. Peter Anvin <hpa@zytor.com> | 1998-05-27 05:13:12 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 1998-05-27 05:13:12 +0000 |
commit | b275c465162438a72d95b7118376410ceb8f4850 (patch) | |
tree | cfb701d87f3f264e82fd0bd241665fb522e8ddd1 /multiserver_mount.patch | |
parent | d68100b39ca2f490c7b0b97ef741c997736be9eb (diff) | |
download | autofs3-b275c465162438a72d95b7118376410ceb8f4850.tar.gz autofs3-b275c465162438a72d95b7118376410ceb8f4850.tar.xz autofs3-b275c465162438a72d95b7118376410ceb8f4850.zip |
As long as we distribute this patch, keep it under CVS.
Diffstat (limited to 'multiserver_mount.patch')
-rw-r--r-- | multiserver_mount.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/multiserver_mount.patch b/multiserver_mount.patch new file mode 100644 index 0000000..ac265af --- /dev/null +++ b/multiserver_mount.patch @@ -0,0 +1,33 @@ +This is a patch to mount(8) that allows it not to choke on Sun-style +multiserver mounts (entries like: "server1(10),server2(5):/export/stuff"). +It will hopefully get integrated into mount eventually. + +Message-ID: <19980401205358.61968@elo> +Date: Wed, 1 Apr 1998 20:53:58 -0600 +From: "David Engel" <david@sw.ods.com> +To: "H. Peter Anvin" <hpa@transmeta.com> +Subject: Re: Hack for Sun replicated maps + + +--- nfsmount.c.orig Wed Apr 1 16:52:53 1998 ++++ nfsmount.c Wed Apr 1 17:14:40 1998 +@@ -51,6 +51,7 @@ + #define _LINUX_SOCKET_H + #endif /* __GLIBC__ */ + #define _I386_BITOPS_H ++#include <asm/posix_types.h> + #include <linux/fs.h> + #include <linux/nfs.h> + #include "nfs_mount3.h" +@@ -163,6 +164,10 @@ + hostname = hostdir; + dirname = s + 1; + *s = '\0'; ++ /* ignore all but first hostname in replicated mounts ++ until they can be fully supported. */ ++ if ((s = (strpbrk(hostdir, ",(")))) ++ *s = '\0'; + } + else { + fprintf(stderr, "mount: " + |