All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kasper Sandberg <lkml@metanurb.dk>
To: Neil Brown <neilb@suse.de>
Cc: LKML Mailinglist <linux-kernel@vger.kernel.org>
Subject: Re: loopback blockdevice driver partition support
Date: Tue, 25 Jul 2006 14:52:21 +0200	[thread overview]
Message-ID: <1153831941.11477.12.camel@localhost> (raw)
In-Reply-To: <17605.22477.933202.350306@cse.unsw.edu.au>

On Tue, 2006-07-25 at 09:29 +1000, Neil Brown wrote:
> On Tuesday July 25, lkml@metanurb.dk wrote:
> > hello.. i was wondering if someone may have done some work to make the
> > loopback driver support partitions..
> > 
> > i found that a guy had written a nice script that used sfdisk and
> > dmsetup to use device mapper on a loopback image of an entire harddrive
> > (using DOS partition table ofcourse) to create device mapper
> > "partitions".
> > 
> > though this doesent quite meet my requirements, as i need to read an
> > image of an amiga disk..
> > 
> > therefore it would seem like a good idea to make the loopback driver
> > work with linux's partition table support, since it already supports
> > this.
> > 
> > if anyone has done some work in this, please mail me, and possibly i can
> > continue it if wanted. just want to know if anyone already has done
> > something like it before i try at it myself..
> > 
> 
> You could try wrapping an md/linear around it
>  
> mkdir -p /dev/md
> mdadm -Bf -c4 -l linear -n1 -ap /dev/md/d0 /dev/loop0
> 
> then look at partitions in /dev/md/d0pN
Yeah, i ended up doing this, i found that md supports partitions, and
linear was a perfect match for what i needed.

> 
> NeilBrown
> 
> -
> 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/
> 


      reply	other threads:[~2006-07-25 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-24 23:19 loopback blockdevice driver partition support Kasper Sandberg
2006-07-24 23:29 ` Neil Brown
2006-07-25 12:52   ` Kasper Sandberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1153831941.11477.12.camel@localhost \
    --to=lkml@metanurb.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.