[haiku-bugs] Re: [Haiku] #8971: When moving swap file locations, old swap file is left on each device

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Mon, 10 Sep 2012 15:04:40 -0000

#8971: When moving swap file locations, old swap file is left on each device
-----------------------------+----------------------------
   Reporter:  kallisti5      |      Owner:  axeld
       Type:  bug            |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by axeld):

 Now that you mention that, that makes sense: the swap file is deleted, but
 its space can only be freed when the file is no longer in use.
 Unfortunately, the swap is never stopped to be used, so when the system
 reboots, the knowledge of freeing this file's space is gone.

 A proper fix would be to shut down the swap file service when the system
 is shut down. This should be done immediately before unmounting/syncing
 the boot drive. In that case, the file should be removed correctly.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8971#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: