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

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Aug 2017 18:47:10 -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 axeld):

 I'm afraid it's not an ultimate test either: the drive combines several
 blocks together as an "erase block". AFAIK this is about 1.5 MB on the
 EVO. This means, that if within this 1.5 MB block, BFS could not erase
 just a single disk block (4K), the drive cannot erase it just yet. So you
 might just have hit such a situation.

 But anyway, until trim does work reliable, it won't be part of the
 release.

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

Other related posts: