#4843: Disabling VirtualMemory does not free up disk space -----------------------------------------+---------------------------- Reporter: Adek336 | Owner: leavengood Type: bug | Status: assigned Priority: normal | Milestone: R1 Component: Preferences/VirtualMemory | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All -----------------------------------------+---------------------------- Comment (by hamish): The way you fix this is relevant to a patch I'm working on in #3723. With support for swap on different volumes, simply deleting /var/swap at boot won't work. Also, deleting the swap file from the volume specified in the config won't work either, because the user could have changed the swap volume and rebooted, leaving a dormant swap file on the old volume. I thought a possible solution might be to symlink /var/swap to wherever the swap file actually is, and delete through that at boot. This would require that the target volume be manually mounted and then unmounted for the deletion. Ideally, there would be a procedure to switch off virtual mem at system shutdown which would make use of the existing swap_file_delete() function. -- Ticket URL: <http://dev.haiku-os.org/ticket/4843#comment:4> Haiku <http://dev.haiku-os.org> Haiku - the operating system.