From 0b26e0b1d457a46c70e64a27713270fa6790e7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 6 Feb 2008 11:46:44 +0000 Subject: [PATCH] * 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 --- src/system/kernel/disk_device_manager/KPartition.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/kernel/disk_device_manager/KPartition.cpp b/src/system/kernel/disk_device_manager/KPartition.cpp index e92d62e5c6..c623a39a17 100644 --- a/src/system/kernel/disk_device_manager/KPartition.cpp +++ b/src/system/kernel/disk_device_manager/KPartition.cpp @@ -131,6 +131,7 @@ bool KPartition::PrepareForRemoval() { bool result = RemoveAllChildren(); + UninitializeContents(); UnpublishDevice(); if (ParentDiskSystem()) ParentDiskSystem()->FreeCookie(this);