* When removing a media, only the device was unmounted if needed, not its child partitions.

Not sure if this is the right place, Ingo might want to review that one.
* This fixes unmounting sessions of a multi-session CD, ie. the BeOS CD (it currently panics
  when trying to access a device that's not there anymore - for debugging only, of course :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23894 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-02-06 11:46:44 +00:00
parent 5d84643b03
commit 0b26e0b1d4
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ bool
KPartition::PrepareForRemoval()
{
bool result = RemoveAllChildren();
UninitializeContents();
UnpublishDevice();
if (ParentDiskSystem())
ParentDiskSystem()->FreeCookie(this);