Re: [NEW FEATURE]Partitions on loop device for 2.6

From: Bill Davidsen (davidsen_at_tmr.com)
Date: 03/30/04

  • Next message: Len Brown: "Re: [ACPI] Re: Linux 2.4.26-rc1 (cmpxchg vs 80386 build)"
    Date:	Tue, 30 Mar 2004 16:37:44 -0500 (EST)
    To: BlaisorBlade <blaisorblade_spam@yahoo.it>
    
    

    On Mon, 29 Mar 2004, BlaisorBlade wrote:

    > Alle 22:04, venerd́ 2 gennaio 2004, Bill Davidsen ha scritto:
    > > BlaisorBlade wrote:
    > > > NEED:
    > > > I have the need to loop mount files containing not plain filesystems, but
    > > > whole disk images.
    > > >
    > > > This is especially needed when using User-mode-linux, since to run any
    > > > distro installer you must partition the virtual disks(and on the host,
    > > > the backing file of the disk contains a partition table).
    > > >
    > > > Currently this could be done by specifying a positive offset, but letting
    > > > the kernel partition code handle this is better, isn't it? Would you ever
    > > > accept this feature into stock kernel?
    > >
    > > UML is on my list of things to learn (as opposed to "try casually and
    > > ignore")
    > It is something a bit like VMWare. But instead of emulating hardware and
    > running an OS inside that, you run a patched Linux kernel that runs as an
    > userspace process on the host and provides a virtual machine, which must
    > access a virtual disk, which is stored on a file.
    > See http://user-mode-linux.sourceforge.net/ for more info.
    > > but have you considered using NBD?
    > I didn't really know what it was, nor it seems useful for this "as is" (I've
    > not really checked). Maybe that sentence means that the server program could
    > do the partition parsing?
    > --
    > cat <<EOSIGN
    > Paolo Giarrusso, aka Blaisorblade
    > Linux Kernel 2.4.23/2.6.0 on an i686; Linux registered user n. 292729
    > EOSIGN

    No, I had in mind that using NBD you might be able to do partitions on the
    network device, depending on just how much it looks like a real block
    device. And since it looks as if just about anything can be a backing
    store for NBD I thought it might be useful to export the file or partition
    being used as the pseudo-drive and letting the UML kernel then do
    partitions on it as it will. While a loopback mount looks like a partition
    more than a disk, I believe the NBD actually looks like a drive.

    I played with NBD long ago when it was new stuff, but what I did would
    have worked as well on a partition or a device, so I have nothing to offer
    but the suggestion.

    -- 
    bill davidsen <davidsen@tmr.com>
      CTO, TMR Associates, Inc
    Doing interesting things with little computers since 1979.
    -
    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/
    

  • Next message: Len Brown: "Re: [ACPI] Re: Linux 2.4.26-rc1 (cmpxchg vs 80386 build)"

    Relevant Pages

    • Problem with multiple mounts
      ... On the nbd client, I make reiserfs and run fsstress test case on this partition. ...
      (Linux-Kernel)
    • Re: Reqst for Information: Loopback device programming
      ... | The main purpose of nbd is to allow using a remote file ... Actually I think the loopback driver ... without the need for a partition table. ... the mount point). ...
      (comp.os.linux.development.system)
    • [PATCH 1/1] NBD: add partition support
      ... This patch from Laurent Vivier adds partition support to NBD. ... +static int max_part; ...
      (Linux-Kernel)
    • Re: max_loop limit
      ... roland wrote: ... bryn m. reeves told me, that it's probably poissible to create udev rules that will automatically create partition maps when a new loop device is setup, which is better than adding partitioning logig into dm-loop for example. ... It is certainly possible to create a partitionable RAID device from a loop device. ... Should be possible to use nbd as well, but I can't seem to get nbd to work on 2.6.21-rc. ...
      (Linux-Kernel)
    • Re: [NEW FEATURE]Partitions on loop device for 2.6
      ... >> the backing file of the disk contains a partition table). ... Paolo Giarrusso, aka Blaisorblade ... Linux Kernel 2.4.23/2.6.0 on an i686; ...
      (Linux-Kernel)