fsdev_disks.get_disk_list(): Add option to get unpartitioned devices
commitf8604ec9b3f9a973998d05ec6a71f9b22883f629
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Fri, 8 Jul 2011 18:02:17 +0000 (8 18:02 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Fri, 8 Jul 2011 18:02:17 +0000 (8 18:02 +0000)
tree48423bd98ed06d58b67a638be10ca68a09cabea9
parenta64c1b7161c8befc721af43fec5afc3e063abbb3
fsdev_disks.get_disk_list(): Add option to get unpartitioned devices

The default behavior of the function fsdev_disks.get_disk_list()
is to return only partitions, rather than possibly unpartitioned
disks (ie, it would return /dev/sdc3 but not an unpartitioned
/dev/sdd). Let's add an option that makes all devices to be
returned, with defaults to the original behavior.

Also, turned a large chunk of content on part of the docstring
for that particular function.

Changes from v2:
* Handle scenario if particular disk have partitions, then it
skips unpartitioned device name and adds only partitioned
devices e.g. /dev/sdc have partitions /dev/sdc1, /dev/sdc2 then
only sdc1,sdc2 are listed and not sdc

Signed-off-by: Shrirang Phansalkar <sphansalkar@stec-inc.com>
Signed-off-by: Vyanktesh Yadav <vyanktesh.yadav@gmail.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5493 592f7852-d20e-0410-864c-8624ca9c26a4
client/bin/fsdev_disks.py