Fixed another bug: after a partition had been mounted, it was only marked

mounted, but no one told it about its volume ID - that caused "mountvolume"
not to be able to return a valid mount point.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12548 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-05-03 01:59:17 +00:00
parent 47729f044c
commit 0953c83ebd

View File

@ -4701,7 +4701,7 @@ fs_mount(char *path, const char *device, const char *fsName, uint32 flags,
// supply the partition (if any) with the mount cookie and mark it mounted // supply the partition (if any) with the mount cookie and mark it mounted
if (partition) { if (partition) {
partition->SetMountCookie(mount->cookie); partition->SetMountCookie(mount->cookie);
partition->AddFlags(B_PARTITION_MOUNTED); partition->SetVolumeID(mount->id);
// keep a partition reference as long as the partition is mounted // keep a partition reference as long as the partition is mounted
partitionRegistrar.Detach(); partitionRegistrar.Detach();