[haiku-commits] Re: BRANCH axeld-github.trim [f5191e6] in src/add-ons/kernel: busses/scsi/ahci generic/scsi_periph

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 28 Oct 2013 23:37:31 +0100

On 10/28/2013 04:40 PM, marcus overhagen wrote:
On Mon, Oct 28, 2013 at 1:15 AM, axeld-github.trim
<community@xxxxxxxxxxxx> wrote:
+       sreq->set_data(lbaRanges, lbaRangesSize);
+
+       bool success = ExecuteSataRequest(sreq);
da fehlt noch:

         sreq.wait_for_completion();

         if (sreq.completion_status() & ATA_ERR) {
                 TRACE("trim failed\n");
                 success = false;
         }

Thanks! I completely missed that one. I also managed to forget to delete the request...

Bye,
   Axel.


Other related posts: