Blame SOURCES/autofs-5.0.6-increase-file-map-read-buffer-size.patch

ab3a3d
autofs-5.0.6 - increase file map read buffer size
ab3a3d
ab3a3d
From: Ian Kent <raven@themaw.net>
ab3a3d
ab3a3d
The file map entry read buffer can be too small for larger
ab3a3d
multi-mount map entries so increase it.
ab3a3d
---
ab3a3d
ab3a3d
 CHANGELOG           |    1 +
ab3a3d
 include/automount.h |    2 +-
ab3a3d
 2 files changed, 2 insertions(+), 1 deletions(-)
ab3a3d
ab3a3d
ab3a3d
diff --git a/CHANGELOG b/CHANGELOG
ab3a3d
index 9cdad6e..3bdf8a4 100644
ab3a3d
--- a/CHANGELOG
ab3a3d
+++ b/CHANGELOG
ab3a3d
@@ -13,6 +13,7 @@
ab3a3d
 - README: update mailing list subscription info.
ab3a3d
 - allow non root user to check status.
ab3a3d
 - fix recursive mount deadlock.
ab3a3d
+- increase file map read buffer size.
ab3a3d
 
ab3a3d
 25/07/2012 autofs-5.0.7
ab3a3d
 =======================
ab3a3d
diff --git a/include/automount.h b/include/automount.h
ab3a3d
index 561fcc2..37541f5 100644
ab3a3d
--- a/include/automount.h
ab3a3d
+++ b/include/automount.h
ab3a3d
@@ -233,7 +233,7 @@ int rmdir_path(struct autofs_point *ap, const char *path, dev_t dev);
ab3a3d
 #define AUTOFS_LOOKUP_VERSION 5
ab3a3d
 
ab3a3d
 #define KEY_MAX_LEN    NAME_MAX
ab3a3d
-#define MAPENT_MAX_LEN 4095
ab3a3d
+#define MAPENT_MAX_LEN 16384
ab3a3d
 #define PARSE_MAX_BUF	KEY_MAX_LEN + MAPENT_MAX_LEN + 2
ab3a3d
 
ab3a3d
 int lookup_nss_read_master(struct master *master, time_t age);