parted: Don't return "loop" for non-partitioned devices (RHBZ#634246).
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 18 Oct 2010 11:56:54 +0000 (12:56 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 18 Oct 2010 11:56:54 +0000 (12:56 +0100)
commitb3d27793f04ae44b2c11f6422a19b4422ac941cd
treebba8892372aa4082e91521effa3fbfc160bf250d
parent361c513dc3e013d2d7e902e3b309a4c37cf6ee0f
parted: Don't return "loop" for non-partitioned devices (RHBZ#634246).

If you ran part-get-parttype command on a device which didn't
contain a partition, it used to return the string "loop".  This
is an internal representation that parted uses.  We should instead
return an error because part-get-parttype makes no sense for
devices which are not partitioned.
daemon/parted.c