tmpfs size option not working

Rob Landley rob at landley.net
Thu Jan 5 00:20:41 UTC 2006


On Wednesday 04 January 2006 16:59, Julien MARBACH wrote:
> Hello,
> I'm trying to fix the maximum size of a tmpfs (my /var directory) but
> the size=16m option doesn't seem to work. The corresponding line in my
> fstab is :
> none /var        tmpfs   size=16M   0   0
> But if i create a big file under /var I never receive any error message
> telling that the limit has been reached. For example if I do a

Which busybox version are you using, and what exactly are you trying to do?

Busybox mount's -a support is a bit flaky right now, and fstab flags is one of 
the things that could easily exhibit strange behavior.  I've been working on 
fixing this and two other related issues in mount.  Might have time to make 
some progress on the plane tomorrow.

Could you send me your /etc/fstab file and tell me exactly what you're doing, 
so I can test against the actual case you're seeing?  (I take it the mount 
that isn't happening right is a mount -a during boot?  Can you fix it with a 
manual mount of tmpfs?  Trying to get remount to do it may not work because 
that's one of the other two things I've been trying to fix...)

> I've tried to unmount and remount /var manually after startup with
>
> $ umount /var
> $ mount tmpfs /var -t tmpfs -o size=16m
>
> But the result is the same. The limit is not respected...

Hmmm...  That one should work in current -svn.  Dunno about 1.01, that's 
before my mount rerwrite went in.  I'll take a look, but not tonight.

> Any idea?

Several.  If saturday rolls around and I haven't gotten back to you on this, 
gimme a poke... 

> Thanks,
>
> julien

Rob
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.



More information about the busybox mailing list