OSDN Git Service

libparted: remove _loop_get_partition_range
authorPhillip Susi <psusi@cfl.rr.com>
Sat, 17 Dec 2011 03:40:04 +0000 (22:40 -0500)
committerJim Meyering <meyering@redhat.com>
Thu, 5 Jan 2012 17:30:26 +0000 (18:30 +0100)
commit11316315f99e61e875eef2964ae3b227a6088db1
treed62433762dd5143a1dfcb9210617b8304d9327ae
parente54f1da5bd2c379d8d2e4e7d5bb086b4947d4591
libparted: remove _loop_get_partition_range

Commit 1eb0cc30 added support for loop devices to be partitioned,
but it only enabled that support if the kernel parameter max_part
was non zero.  This parameter just reserves minor numbers for
partitions in the traditional sequence that hard disks used.
When it is zero, it is still possible to add partitions, they
just will get minor numbers from another pool.  Removing this
check allows partitions to be used on loop devices even when the
loop module was not loaded with the max_part argument.
* libparted/arch/linux.c (_loop_get_partition_range): Remove function
and all uses.
libparted/arch/linux.c