From 0953c83ebd428b1d46312d00684d33558fa3fb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 3 May 2005 01:59:17 +0000 Subject: [PATCH] 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 --- src/system/kernel/fs/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index b88e241755..07b0e47f4f 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -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 if (partition) { partition->SetMountCookie(mount->cookie); - partition->AddFlags(B_PARTITION_MOUNTED); + partition->SetVolumeID(mount->id); // keep a partition reference as long as the partition is mounted partitionRegistrar.Detach();