diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-03-22 13:29:15 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-05-21 14:32:42 -0700 |
commit | b7d8f9ddb290fe23af4d62b812e66fb5bf563e1d (patch) | |
tree | 43e6584e8493121dae1b2b8cd16e4bcd52a649ba /etc | |
parent | 403d0f0037794ab94666e780e19728871f11b278 (diff) | |
download | vyatta-cfg-b7d8f9ddb290fe23af4d62b812e66fb5bf563e1d.tar.gz vyatta-cfg-b7d8f9ddb290fe23af4d62b812e66fb5bf563e1d.zip |
Bugfix 7267: make inodes allocate dynamically
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/init.d/vyatta-router | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router index 70023d0..2b0aa02 100755 --- a/etc/init.d/vyatta-router +++ b/etc/init.d/vyatta-router @@ -184,14 +184,7 @@ start () # of the system memory. local tmem=$(sed -n 's/^MemTotal: \+\([0-9]\+\) kB$/\1/p' /proc/meminfo) local tpages - local max_inodes=300000 - if [ -n "$tmem" ]; then - (( tpages = tmem / 4 )) - if (( tpages > max_inodes )); then - (( max_inodes = tpages )) - fi - fi - local tmpfs_opts="nosuid,nodev,mode=775,nr_inodes=$max_inodes" + local tmpfs_opts="nosuid,nodev,mode=775,nr_inodes=0" #automatically allocate inodes mount -o $tmpfs_opts -t tmpfs none ${vyatta_configdir} \ && chgrp ${GROUP} ${vyatta_configdir} log_action_end_msg $? |