partitionedfs: make the interface a bit saner
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 4 Jan 2013 13:41:08 +0000 (15:41 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 10 Jan 2013 12:13:17 +0000 (14:13 +0200)
commit542fee95676553bec1b77b835ac6d097fceaff40
tree5d64f95da8efdb2f148af07ced6f703acee549c7
parent86dcba02e8c49f8489d5d593d0f60d76ac95b4ea
partitionedfs: make the interface a bit saner

We have 'add_partition()' call to add one partion, but we have 'add_disks()'
method to add all disks at once. This is inconsistent and makes the code more
difficult to understand. Fix this by changind 'add_disks()' into 'add_disk()'
which adds a single disk. This makes things look a lot nicer.

Change-Id: I8a4f4249b1f8fa02486d4cbb3fbc4226ca2e65b8
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/imager/liveusb.py
mic/imager/raw.py
mic/utils/partitionedfs.py
plugins/imager/liveusb_plugin.py
plugins/imager/raw_plugin.py