2005-11-26 04:38:30

by Coywolf Qi Hunt

[permalink] [raw]
Subject: Re: Multimount block devices

2005/7/22, Jan Engelhardt <[email protected]>:
> Hi,
>
>
> I have got a block device which I would like to mount twice using different
> filesystems. The two filesystems support this (are already patched), but
> through the function thread of mounting comes open_bdev_excl() which makes
> it impossible to do said mounts.
>
> Can anyone give me a hint on what to change to disable bdev exclusive locking
> for a given condition? Thanks.

Write your own get_sb_bdev() and open_bdev(), do not call bd_claim().
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/