Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762818AbYCGMLl (ORCPT ); Fri, 7 Mar 2008 07:11:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756589AbYCGMLd (ORCPT ); Fri, 7 Mar 2008 07:11:33 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:52276 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756344AbYCGMLd (ORCPT ); Fri, 7 Mar 2008 07:11:33 -0500 Subject: Re: [PATCH] Modify loop device to be able to manage partitions of the disk image From: Laurent Vivier To: 7eggert@gmx.de Cc: Nick Piggin , linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Organization: Bull S.A.S. Date: Fri, 07 Mar 2008 13:13:56 +0100 Message-Id: <1204892036.4315.29.camel@frecb07144> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 37 Le vendredi 07 mars 2008 à 12:56 +0100, Bodo Eggert a écrit : > Nick Piggin wrote: > > On Thursday 06 March 2008 21:16, Laurent Vivier wrote: > >> Le jeudi 06 mars 2008 à 20:57 +1100, Nick Piggin a écrit : > > >> > Do you think we do something similar for drivers/block/brd.c too? I'd > >> > like to try to maintain parity between them where possible... > >> > >> I think it is possible (I've the same patch for NBD too), but I think > >> it is completely useless. > > > > It's useful for testing, and for minimising the divergence in the > > code. > > Maybe there should be a common mechanism to use partitions on any block > device. Maybe there is - I have dark memories about the device mapper The mechanism exists: the driver must call alloc_disk() with a value != 1. This is what is modifying this patch. > being able to parse partition tables, and plans on moving partition > support to userspace. This is kpartx. Laurent -- ----------------- Laurent.Vivier@bull.net ------------------ "Programmers who subconsciously view themselves as artists will enjoy what they do and will do it better." D. Knuth -- 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/