[haiku-development] Re: Multiple mounting of file systems

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 08 Apr 2010 12:46:25 +0200

On 2010-04-07 at 23:12:15 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
wrote:
> Janito Ferreira Filho <jvffprog@xxxxxxxxxxx> wrote:
> > I was wondering, what happens if you mount a file system twice?
> > Does Haiku allow this to happen? Should a file system check if it's
> > already mounted? Thanks,
> 
> It can and should do so for devices (and file images),

I just had a quick glance at fs_mount() and fs_unmount() in the VFS and we 
really should prevent mounting partitions more than once there already. 
Otherwise things get confused (KPartition mount cookie).

CU, Ingo

Other related posts: