[haiku-bugs] [Haiku] #13555: Destroying ramdisk without unmounting first causes KDL

  • From: "waddlesplash" <trac@xxxxxxxxxxxx>
  • Date: Tue, 13 Jun 2017 01:02:51 -0000

#13555: Destroying ramdisk without unmounting first causes KDL
--------------------------+------------------------------
 Reporter:  waddlesplash  |        Owner:  nobody
     Type:  bug           |       Status:  new
 Priority:  normal        |    Milestone:  Unscheduled
Component:  System        |      Version:  R1/Development
 Keywords:                |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 Not sure what component to file this under.

 If one creates a RAMdisk and initializes with BFS...
 {{{
 ramdisk create -s 1gb
 mkfs -q -t bfs /dev/disk/virtual/ram/0/raw RAMses
 mountvolume RAMses
 }}}
 and then attempts to delete it without unmounting first
 {{{
 ramdisk delete 0
 }}}
 there is an instant KDL (inside the BFS driver, of course.)

 It looks like the BFS driver does not have the chance to fully
 deinitialize before the disk is destroyed. Manually unmounting and then
 deleting the ramdisk works just fine.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13555>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: