Commit 2520c665c8df68550dac083bb81bb0a1c414432d
1 parent
b29d8ae4
Use "mount -o remount" instead of "umount" and "mount /dev/shm",
which results in emptying this virtual file system. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4228 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
2 deletions
osdep.c
... | ... | @@ -107,8 +107,7 @@ static void *kqemu_vmalloc(size_t size) |
107 | 107 | tmpdir, ram_mb); |
108 | 108 | if (strcmp(tmpdir, "/dev/shm") == 0) { |
109 | 109 | fprintf(stderr, "To have more space available provided you have enough RAM and swap, do as root:\n" |
110 | - "umount /dev/shm\n" | |
111 | - "mount -t tmpfs -o size=%dm none /dev/shm\n", | |
110 | + "mount -o remount,size=%dm /dev/shm\n", | |
112 | 111 | ram_mb + 16); |
113 | 112 | } else { |
114 | 113 | fprintf(stderr, | ... | ... |