Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932720AbVKZEia (ORCPT ); Fri, 25 Nov 2005 23:38:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932722AbVKZEia (ORCPT ); Fri, 25 Nov 2005 23:38:30 -0500 Received: from nproxy.gmail.com ([64.233.182.195]:23078 "EHLO nproxy.gmail.com") by vger.kernel.org with ESMTP id S932720AbVKZEia convert rfc822-to-8bit (ORCPT ); Fri, 25 Nov 2005 23:38:30 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=a+FOVAh7JLM0HkfRcU0YJWFhMHza3NBrZb8Qy79Zvu25jmxrJn3bCvgx2WrwgkcQnVBk+4/VX082zMohrEPancoyJ1Ni6ds+VFzYs9J9h4XCCqkVt4VzAbGpXOZmJ5fJk76yrzOtRo2OIPAwtNNYXV/z21uUp3/gxvHLcirJGks= Message-ID: <2cd57c900511252038v4c378320t@mail.gmail.com> Date: Sat, 26 Nov 2005 12:38:28 +0800 From: Coywolf Qi Hunt To: Jan Engelhardt Subject: Re: Multimount block devices Cc: Linux Kernel Mailing List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 21 2005/7/22, Jan Engelhardt : > 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/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/