[haiku-bugs] Re: [Haiku] #10336: TRIM / fstrim can destroy data on SSD's when executed

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Aug 2017 13:43:33 -0000

#10336: TRIM / fstrim can destroy data on SSD's when executed
----------------------------+----------------------------
   Reporter:  kallisti5     |      Owner:  axeld
       Type:  bug           |     Status:  in-progress
   Priority:  blocker       |  Milestone:  R1/beta1
  Component:  Drivers/Disk  |    Version:  R1/Development
 Resolution:                |   Keywords:  TRIM fstrim
 Blocked By:                |   Blocking:
Has a Patch:  1             |   Platform:  All
----------------------------+----------------------------

Comment (by anevilyak):

 Replying to [comment:37 pulkomandy]:

Yes, in that case the block should be erased as well. So it looks like
 in your case, fstrim does nothing at all, or maybe not as much as it
 could.

 Is it actually required/guaranteed for the SSD controller to execute that
 command synchronously? Or for that matter, to physically erase the page at
 that point? Depending on the impl, it could conceivably simply mark the
 page as available for erasure internally, and not actually touch it until
 needed, but I'm not so familiar with the details of the specs.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10336#comment:38>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: