Re: [PATCH] stage1 (init): Make /tmp tmpfs large enough to hold install.img (#540146)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 12/01/2009 05:38 PM, Chris Lumens wrote:
diff --git a/loader/init.c b/loader/init.c
index e3bb9b0..67c9d62 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -779,7 +779,7 @@ int main(int argc, char **argv) {
          mkdir("/tmp", 0755);

          printf("mounting /tmp as tmpfs... ");
-        if (mount("none", "/tmp", "tmpfs", 0, NULL))
+        if (mount("none", "/tmp", "tmpfs", 0, "size=250m"))
              fatal_error(1);
          printf("done\n");

What happens if the system has<= 250 MB of memory?  For that matter,
what happens if the system has 256 MB of memory?


The size is only the maximum size the tmpfs can grow to before returning
-ENOSPC when writing to it. It only uses the amount of memory which is actually
used on my 2G mem workstation I can create 4 tmpfs which each default to 1G size,
without any issues.

Regards,

Hans

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux