From 3cb039fffa0cf6f88f44d0a4c847d2660d69d89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 5 May 2006 11:17:08 +0000 Subject: [PATCH] When you try to mount a file image, BFS now only sees the normalized path instead of the one supplied to fs_mount() (but not the /dev/disk/virtual/... entry, as that wouldn't be that clear to the user). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17335 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index e1d9503ab5..046d57fc87 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -5137,10 +5137,11 @@ fs_mount(char *path, const char *device, const char *fsName, uint32 flags, // get the partition KDiskDeviceManager *ddm = KDiskDeviceManager::Default(); KPartition *partition = NULL; + KPath normalizedDevice; bool newlyCreatedFileDevice = false; + if (!(flags & B_MOUNT_VIRTUAL_DEVICE) && device) { // normalize the device path - KPath normalizedDevice; status = normalizedDevice.SetTo(device, true); if (status != B_OK) return status; @@ -5166,6 +5167,9 @@ fs_mount(char *path, const char *device, const char *fsName, uint32 flags, normalizedDevice.Path())); return B_ENTRY_NOT_FOUND; } + + device = normalizedDevice.Path(); + // correct path to file device } PartitionRegistrar partitionRegistrar(partition, true);