[haiku-bugs] Re: [Haiku] #3150: BFS directory corruption.

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 07 Sep 2018 21:37:40 -0000

#3150: BFS directory corruption.
-------------------------------+-------------------------------------------
   Reporter:  bga              |      Owner:  axeld
       Type:  bug              |     Status:  new
   Priority:  blocker          |  Milestone:  R1
  Component:  File             |    Version:  R1/Development
  Systems/BFS                  |
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:  3932, 4011, 8712, 9761, 14409
Has a Patch:  0                |   Platform:  x86
-------------------------------+-------------------------------------------

Comment (by waddlesplash):

 The ATADevice does have a mechanism to flush the caches:
 http://xref.plausible.coop/source/xref/haiku/src/add-
 ons/kernel/bus_managers/ata/ATADevice.cpp#58

 AHCI (SATA) does also: http://xref.plausible.coop/source/xref/haiku/src
 /add-ons/kernel/busses/scsi/ahci/ahci_port.cpp#ScsiSynchronizeCache

 It seems this is only triggered outside these files in "scsi_periph"
 (http://xref.plausible.coop/source/xref/haiku/src/add-
 ons/kernel/generic/scsi_periph/sync.cpp#36). The ATADevice calls
 Synchronize in SCSI_OP_START_STOP; AHCIPort does not even handle that
 opcode. Maybe that is the problem?

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

Other related posts: