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

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 03 Nov 2016 22:02:48 -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:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by pulkomandy):

 In hrev50664 I added support for trim to our ramdisk device. This makes it
 possible to test the BFS code with a different disk driver. (and is also
 useful to release the RAM used by the ramdisk when space is free on the
 filesystem).

 I did that (with a 8MB disk image) and did not manage to corrupt the
 filesystem yet. So either the bug is in the SCSI implementation of trim,
 or it needs a disk larger than 8MB to start having problems. Anyway, this
 makes it possible to test the BFS side of the code without running it on
 actual data.

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

Other related posts: