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

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