max_loop limit
partitions on loop or device-mapper devices ?
you can use kpartx tool for this.
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.
example:
Quoted 5 lines
kpartx -a
/dev/mapper/loop0# ls /dev/mapper/loop0* /dev/mapper/loop0 /dev/mapper/loop0p1 /dev/mapper/loop0p2 /dev/mapper/loop0p3
i have seen a patch for loop.c doing this, though. search the archives for this
regards
roland
Quoted 2 lines · Al Viro
Correction: current ABI is crap. To set the thing up you need to open it and issue an ioctl. Which is a bloody bad idea, for obvious reasons...
Agreed. What would be a right way? Global device ala ptmx/tun/tap? New syscall? Something else?
OG.
-
]
Quoted 5 lines · roland
partitions on loop or device-mapper devices ?
you can use kpartx tool for this.
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 (my working system runs 2.6.17).
Quoted 27 lines
example:
Quoted 5 lines
kpartx -a
/dev/mapper/loop0# ls /dev/mapper/loop0* /dev/mapper/loop0 /dev/mapper/loop0p1 /dev/mapper/loop0p2 /dev/mapper/loop0p3i have seen a patch for
loop.cdoing this, though. search the archives for thisregards
rolandQuoted 2 lines · Al Viro
Correction: current ABI is crap. To set the thing up you need to open it and issue an ioctl. Which is a bloody bad idea, for obvious reasons...
Agreed. What would be a right way? Global device ala ptmx/tun/tap? New syscall? Something else?
OG.
-
]
Signature · 3 lines
Bill Davidsen <[email protected]> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot