kernel: enable ramfs build and automount to shared_memory directory
This will allow proper operation of POSIX SHM API (shm_open etc.).
Now memory files are stored fully in memory and do not affect disk
storage (except swap if enabled).
Change-Id: Iae3ce1afa968df72e82198e598a273cbf7cb0269
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5802
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit bf2786efaebcda175697936e70d237c5e3ddd38f)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5851
Diff
build/jam/images/definitions/minimum | 1 +
src/system/kernel/fs/vfs_boot.cpp | 4 ++++
2 files changed, 5 insertions(+)
@@ -243,6 +243,7 @@
log_overlay
ntfs
packagefs
ramfs
reiserfs
udf
write_overlay
@@ -555,6 +555,10 @@
}
}
status = _kern_mount("/boot/system/var/shared_memory", NULL, "ramfs", 0, NULL, 0);
if (status < B_OK)
dprintf("Failed to mount shared memory FS: %s\n", strerror(status));
gBootDevice = bootDevice;