Re: [PATCH] Modify loop device to be able to manage partitions of the disk image

From: Bart Van Assche
Date: Fri Mar 07 2008 - 07:08:47 EST


On Fri, Mar 7, 2008 at 12:56 PM, Bodo Eggert <7eggert@xxxxxx> wrote:
> Nick Piggin <nickpiggin@xxxxxxxxxxxx> 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
> being able to parse partition tables, and plans on moving partition
> support to userspace.

It's easy to add partition support to the loopback device. A patch
that realizes this was already published in 2004. See also
http://lwn.net/Articles/110426/.

Bart Van Assche.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/