|
|
be8827d |
--- nfs-utils-1.0.10/utils/mount/nfs_mount.h.orig 2007-05-15 09:54:09.293871000 -0400
|
|
|
be8827d |
+++ nfs-utils-1.0.10/utils/mount/nfs_mount.h 2007-05-15 09:55:02.842057000 -0400
|
|
|
be8827d |
@@ -63,6 +63,7 @@ struct nfs_mount_data {
|
|
|
be8827d |
#define NFS_MOUNT_BROKEN_SUID 0x0400 /* 4 */
|
|
|
be8827d |
#define NFS_MOUNT_NOACL 0x0800 /* 4 */
|
|
|
be8827d |
#define NFS_MOUNT_SECFLAVOUR 0x2000 /* 5 */
|
|
|
be8827d |
+#define NFS_MOUNT_NORDIRPLUS 0x4000 /* 5 */
|
|
|
be8827d |
|
|
|
be8827d |
/* security pseudoflavors */
|
|
|
be8827d |
|
|
|
be8827d |
--- nfs-utils-1.0.10/utils/mount/nfsmount.c.orig 2007-05-15 09:54:09.331833000 -0400
|
|
|
be8827d |
+++ nfs-utils-1.0.10/utils/mount/nfsmount.c 2007-05-15 09:55:02.852057000 -0400
|
|
|
be8827d |
@@ -762,6 +762,10 @@ parse_options(char *old_opts, struct nfs
|
|
|
be8827d |
data->flags &= ~NFS_MOUNT_NOACL;
|
|
|
be8827d |
if (!val)
|
|
|
be8827d |
data->flags |= NFS_MOUNT_NOACL;
|
|
|
be8827d |
+ } else if (!strcmp(opt, "rdirplus")) {
|
|
|
be8827d |
+ data->flags &= ~NFS_MOUNT_NORDIRPLUS;
|
|
|
be8827d |
+ if (!val)
|
|
|
be8827d |
+ data->flags |= NFS_MOUNT_NORDIRPLUS;
|
|
|
be8827d |
#endif
|
|
|
be8827d |
} else {
|
|
|
be8827d |
bad_option:
|
|
|
be8827d |
@@ -947,6 +951,7 @@ nfsmount(const char *spec, const char *n
|
|
|
be8827d |
#endif
|
|
|
be8827d |
#if NFS_MOUNT_VERSION >= 5
|
|
|
be8827d |
printf("sec = %u ", data.pseudoflavor);
|
|
|
be8827d |
+ printf("readdirplus = %d ", (data.flags & NFS_MOUNT_NORDIRPLUS) != 0);
|
|
|
be8827d |
#endif
|
|
|
be8827d |
printf("\n");
|
|
|
be8827d |
#endif
|
|
|
be8827d |
--- nfs-utils-1.0.10/utils/mount/nfs.man.orig 2007-05-15 09:54:09.210933000 -0400
|
|
|
be8827d |
+++ nfs-utils-1.0.10/utils/mount/nfs.man 2007-05-15 09:55:02.860057000 -0400
|
|
|
be8827d |
@@ -272,6 +272,11 @@ default UDP protocol. Many NFS servers
|
|
|
be8827d |
.I udp
|
|
|
be8827d |
Mount the NFS filesystem using the UDP protocol. This
|
|
|
be8827d |
is the default.
|
|
|
be8827d |
+.TP 1.5i
|
|
|
be8827d |
+.I nordirplus
|
|
|
be8827d |
+Disables NFSv3 READDIRPLUS RPCs. Use this options when
|
|
|
be8827d |
+mounting servers that don't support or have broken
|
|
|
be8827d |
+READDIRPLUS implementations.
|
|
|
be8827d |
.P
|
|
|
be8827d |
All of the non-value options have corresponding nooption forms.
|
|
|
be8827d |
For example, nointr means don't allow file operations to be
|