From nobody@FreeBSD.org  Thu Jun 18 16:43:27 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2D2DF1065689
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jun 2009 16:43:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1BECF8FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jun 2009 16:43:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5IGhQbQ057168
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jun 2009 16:43:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5IGhQOE057167;
	Thu, 18 Jun 2009 16:43:26 GMT
	(envelope-from nobody)
Message-Id: <200906181643.n5IGhQOE057167@www.freebsd.org>
Date: Thu, 18 Jun 2009 16:43:26 GMT
From: Michael Jung <mikej@paymentallianceintl.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount -t tmpfs does not follow 'size' option
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135710
>Category:       bin
>Synopsis:       mount(8): mount -t tmpfs does not follow 'size' option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 18 16:50:01 UTC 2009
>Closed-Date:    Mon Jun 22 20:52:21 UTC 2009
>Last-Modified:  Mon Sep 13 15:20:02 UTC 2010
>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@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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Jun 21 09:45:21 UTC 2009 
Responsible-Changed-Why:  
reassign to fs team 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135710 
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Jun 22 20:52:20 UTC 2009 
State-Changed-Why:  
Nathanael gave a pretty good explaination which I follow; the behaviour 
is intended. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135710 

From: Nick Hibma <nick@anywi.com>
To: bug-followup@FreeBSD.org,
 mikej@paymentallianceintl.com
Cc:  
Subject: Re: bin/135710: mount(8): mount -t tmpfs does not follow 'size' option
Date: Mon, 13 Sep 2010 16:01:06 +0200

 So, what exactly is one to do to set the size to a specific amount? Or =
 is it automatic? I cannot find ANY information on this (the size of =
 tmpfs).
 
 Nick Hibma
 AnyWi Technologies
 

From: Oliver Fromme <olli@lurza.secnetix.de>
To: bug-followup@FreeBSD.ORG, Nick Hibma <nick@anywi.com>
Cc:  
Subject: Re: bin/135710: mount(8): mount -t tmpfs does not follow 'size' ?option
Date: Mon, 13 Sep 2010 17:16:01 +0200 (CEST)

 Nick Hibma <nick@anywi.com> wrote:
  > So, what exactly is one to do to set the size to a specific amount?
  > Or is it automatic? I cannot find ANY information on this (the size
  > of tmpfs).
 
 Did you read Nathanael's reply?  I think it explains it all:
 
 http://lists.freebsd.org/pipermail/freebsd-fs/2009-June/006368.html
 
 Best regards
    Oliver
 
 -- 
 Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
 Handelsregister: Registergericht Muenchen, HRA 74606,  Geschftsfuehrung:
 secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mn-
 chen, HRB 125758,  Geschftsfhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
 
 FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd
 
 "... there are two ways of constructing a software design:  One way
 is to make it so simple that there are _obviously_ no deficiencies and
 the other way is to make it so complicated that there are no _obvious_
 deficiencies."        -- C.A.R. Hoare, ACM Turing Award Lecture, 1980
>Unformatted:
