Use disk parameters in noded
authorAndrea Spadaccini <spadaccio@google.com>
Mon, 21 Nov 2011 13:48:58 +0000 (13:48 +0000)
committerAndrea Spadaccini <spadaccio@google.com>
Thu, 1 Dec 2011 11:04:02 +0000 (11:04 +0000)
commit94dcbdb031f1d8a8bcd368ed911e83a25eabb1c2
tree4bb90638118106a981564114401971280b6e47a8
parent13d2e2312055047fb7c36d98e1c0f85647fda0c0
Use disk parameters in noded

* add the params attribute to BlockDev, and add the corresponding
  parameter to all the BlockDev classes;
* change the Create, Assemble and FindDevice factory functions interface
  to accept as parameters an objects.Disk instance and a list of
  children block devices; update their callers;
* make the factory functions provide default values for params if
  needed;
* factor out a check in the block device factory functions.

Signed-off-by: Andrea Spadaccini <spadaccio@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/bdev.py