misc/135710: mount -t tmpfs does not follow 'size' option

Michael Jung mikej at paymentallianceintl.com
Thu Jun 18 16:50:03 UTC 2009


>Number:         135710
>Category:       misc
>Synopsis:       mount -t tmpfs does not follow 'size' option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 18 16:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Michael Jung
>Release:        current
>Organization:
>Environment:
FreeBSD charon.confluentasp.com 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Wed Jun 17 13:02:05 EDT 2009     mikej at charon.confluentasp.com:/usr/obj/usr/src/sys/CHARON  i386

>Description:
mount -o size=6442450944 -t tmpfs tmpfs /mnt

This should create a 6GB file system, but instead I get 

tmpfs                      2097152          4   2097148     0%    /mnt

mount -o size=5368709120 -t tmpfs tmpfs /mnt
should create a 5GB file system but instead I get

tmpfs                      1.0G    4.0K    1.0G     0%    /mnt

Additionally size will accept alpha character without complaining.
>How-To-Repeat:
use above commands
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list