qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [4228] Use "mount -o remount" instead of "umount" and "moun


From: Aurelien Jarno
Subject: [Qemu-devel] [4228] Use "mount -o remount" instead of "umount" and "mount /dev/shm",
Date: Sun, 20 Apr 2008 21:10:41 +0000

Revision: 4228
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4228
Author:   aurel32
Date:     2008-04-20 21:10:41 +0000 (Sun, 20 Apr 2008)

Log Message:
-----------
Use "mount -o remount" instead of "umount" and "mount /dev/shm",
which results in emptying this virtual file system.

Modified Paths:
--------------
    trunk/osdep.c

Modified: trunk/osdep.c
===================================================================
--- trunk/osdep.c       2008-04-20 20:19:54 UTC (rev 4227)
+++ trunk/osdep.c       2008-04-20 21:10:41 UTC (rev 4228)
@@ -107,8 +107,7 @@
                         tmpdir, ram_mb);
                 if (strcmp(tmpdir, "/dev/shm") == 0) {
                     fprintf(stderr, "To have more space available provided you 
have enough RAM and swap, do as root:\n"
-                            "umount /dev/shm\n"
-                            "mount -t tmpfs -o size=%dm none /dev/shm\n",
+                            "mount -o remount,size=%dm /dev/shm\n",
                             ram_mb + 16);
                 } else {
                     fprintf(stderr,






reply via email to

[Prev in Thread] Current Thread [Next in Thread]