On Wed, 27 Feb 2013 09:42:02 +0100
Martin Steigerwald <mar...@lichtvoll.de> wrote:

> Are you sure about the partition support? I thought something related to 
> loop partition support has gone into some not so recent kernel.

Sorry, you are correct, this was in fact added since 2.6.26.

Just tried out making a partitioned loop device:

  dd if=/dev/zero of=100GB bs=1 count=1 seek=100G
  modprobe loop max_part=8
  losetup /dev/loop7 100GB
  cfdisk /dev/loop7

  [ made two partitions, commit, quit cfdisk ]

  [ ...but partitions did not automatically appear as /dev/loop7pX ]

  blockdev --rereadpt /dev/loop7

  [ OK, now here they are: ]
  
  $ ls -la /dev/loop7p?
  brw-rw---T 1 root disk 7, 113 Feb 27 15:10 /dev/loop7p1
  brw-rw---T 1 root disk 7, 114 Feb 27 15:10 /dev/loop7p2

-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature

Reply via email to