mirror of
https://review.haiku-os.org/haiku
synced 2025-01-21 22:04:49 +01:00
* 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:
parent
5d84643b03
commit
0b26e0b1d4
@ -131,6 +131,7 @@ bool
|
||||
KPartition::PrepareForRemoval()
|
||||
{
|
||||
bool result = RemoveAllChildren();
|
||||
UninitializeContents();
|
||||
UnpublishDevice();
|
||||
if (ParentDiskSystem())
|
||||
ParentDiskSystem()->FreeCookie(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user