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

From: Laurent Vivier
Date: Fri Mar 07 2008 - 07:11:41 EST



Le vendredi 07 mars 2008 Ã 12:56 +0100, Bodo Eggert a Ãcrit :
> 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

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@xxxxxxxx ------------------
"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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/