OSDN Git Service

libparted: improve support for partitions on loopback devices
authorPetr Uzel <petr.uzel@suse.cz>
Thu, 29 Sep 2011 13:14:23 +0000 (15:14 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 29 Sep 2011 14:18:58 +0000 (16:18 +0200)
commit1eb0cc30d9a2f6a2a6c1f7ec0e4003b1081c5738
tree578138727fc0b40f4112fdfabed3c4ac58932fa9
parent3e35b6559ad1ebfbad47e8edb2b002d7c07c984c
libparted: improve support for partitions on loopback devices

Since linux-2.6.26, the kernel allows partitions on loopback devices.
Implement support for this feature in parted.
* libparted/arch/linux.c (_sysfs_int_entry_from_dev): New function.
(_loop_get_partition_range): New function.
(_device_get_partition_range): Add special handling for loop devices.
* NEWS: Mention this change.
NEWS
libparted/arch/linux.c