From 452ba3abd192d4b3e268d2d8546874436e0d6b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 16 Sep 2004 15:34:26 +0000 Subject: [PATCH] Just like any other mount point, "/" should not be remounted - dunno why that was there before. Thanks to Ingo for pointing this out. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8981 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/fs/vfs.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kernel/core/fs/vfs.cpp b/src/kernel/core/fs/vfs.cpp index acbcf00c08..fb731c361d 100755 --- a/src/kernel/core/fs/vfs.cpp +++ b/src/kernel/core/fs/vfs.cpp @@ -3535,10 +3535,9 @@ fs_mount(char *path, const char *device, const char *fsName, void *args, bool ke goto err5; } - // XXX insert check to make sure covered_vnode is a DIR, or maybe it's okay for it not to be + // ToDo: insert check to make sure covered_vnode is a DIR, or maybe it's okay for it not to be - if (covered_vnode != sRoot - && covered_vnode->mount->root_vnode == covered_vnode) { + if (covered_vnode->mount->root_vnode == covered_vnode) { err = ERR_VFS_ALREADY_MOUNTPOINT; goto err5; }