OSDN Git Service

libparted: remove has_partitions check to allow loopback partitions
authorPhillip Susi <psusi@cfl.rr.com>
Sat, 17 Dec 2011 04:05:39 +0000 (23:05 -0500)
committerJim Meyering <meyering@redhat.com>
Thu, 5 Jan 2012 17:56:12 +0000 (18:56 +0100)
commitf5c909c0cd50ed52a48dae6d35907dc08b137e88
tree713c4289a8f23baf9b186f1e661d1060fd67c692
parent11316315f99e61e875eef2964ae3b227a6088db1
libparted: remove has_partitions check to allow loopback partitions

Commit 1b766b69 added the _has_partitions function to check if a device
was a loop device and if so, skip updating the kernel partition table
because loop devices did not support partitions.  This function never
worked anyway, and loop devices now (since linux 3.2) support
partitions, so remove this crufty code.
* libparted/arch/linux.c (_has_partitions): Remove function and
all uses.
libparted/arch/linux.c