summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/mount.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-24 20:58:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-24 20:58:47 +0000
commit3cf8394af5f646642df593c8de833441e186af64 (patch)
tree879804337835a352853d5eb06d31565d4dba33d7 /cpukit/libcsupport/src/mount.c
parentMoved mpc860.h around to make things compile. (diff)
downloadrtems-3cf8394af5f646642df593c8de833441e186af64.tar.bz2
Changed IMFS to use IMFS_NAME_MAX as the maximum length of a basename
rather then NAME_MAX. NAME_MAX is 255 and that lets IMFS chew up memory too fast. Perhaps in the future, the places in IMFS that put a maximum length name string on the stack and the jnode structure does not include a maximu length name string can be fixed so this is not a problem.
Diffstat (limited to 'cpukit/libcsupport/src/mount.c')
-rw-r--r--cpukit/libcsupport/src/mount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index 9b42c78118..d7d12f442e 100644
--- a/cpukit/libcsupport/src/mount.c
+++ b/cpukit/libcsupport/src/mount.c
@@ -32,12 +32,16 @@
Chain_Control rtems_filesystem_mount_table_control;
+#include "imfs.h"
+
+/* XXX this structure should be in an IMFS specific file */
+/* XXX this structure should use real constants */
rtems_filesystem_limits_and_options_t IMFS_LIMITS_AND_OPTIONS = {
5, /* link_max */
6, /* max_canon */
7, /* max_input */
- 255, /* name_max */
+ IMFS_NAME_MAX, /* name_max */
255, /* path_max */
2, /* pipe_buf */
1, /* posix_async_io */