From 34fa5bc8e80b9710fd7841a21755f06be4139f3f Mon Sep 17 00:00:00 2001 From: "kevin.granade@gmail.com" Date: Mon, 7 Sep 2009 18:16:55 -0500 Subject: [PATCH] mount: document changed semantics of tmpfs size option in mount.8 Linux kernel commit 818db35992c249dc32c1d86daf7d533fb0952f5d fixed a problem where invoking mount -t tmpfs with a size argument smaler than the size of one page caused the limits on the size of a tmpfs to not operate. The commit also caused the number supplied by the size option to be rounded up to the nearest page size instead of down. This alters the man page to match the behavior of the kernel in this instance. Signed-off-by: Kevin Granade --- mount/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount/mount.8 b/mount/mount.8 index 5752c96c..27fde4c9 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -1945,7 +1945,7 @@ None. .TP .BI size= nbytes Override default maximum size of the filesystem. -The size is given in bytes, and rounded down to entire pages. +The size is given in bytes, and rounded up to entire pages. The default is half of the memory. The size parameter also accepts a suffix % to limit this tmpfs instance to that percentage of your physical RAM: the default, when neither size nor nr_blocks is specified, is size=50% -- 2.39.5