From 53cd4267eca7d1bd45cce2d2ce47bc63d278e9b4 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 22 Mar 2012 13:29:15 -0700 Subject: Bugfix 7267: make inodes allocate dynamically --- etc/init.d/vyatta-router | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'etc') 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 $? -- cgit v1.2.3