diskimage-builder/diskimage_builder/block_device
Ian Wienand 886f925b13 Use global state to check for duplicate fs labels
As we add file-systems, add them to global state and check the labels
are uniqiue.  Add a unit test and remove the old global value.

Bonus fixup to the length check, and a test for that too.

Change-Id: I0f5a96f687c92e000afc9c98a26c49c4b1d3f28d
2017-06-08 17:13:28 +10:00
..
level0 Remove 'state' argument from later cmd_* calls 2017-06-08 17:13:28 +10:00
level1 Add state to NodeBase class 2017-06-08 17:13:26 +10:00
level2 Use global state to check for duplicate fs labels 2017-06-08 17:13:28 +10:00
level3 Remove 'state' argument from later cmd_* calls 2017-06-08 17:13:28 +10:00
level4 Add state to NodeBase class 2017-06-08 17:13:26 +10:00
tests Use global state to check for duplicate fs labels 2017-06-08 17:13:28 +10:00
__init__.py Clear __init__.py from cmd move 2017-05-11 18:52:14 +10:00
blockdevice.py Remove 'state' argument from later cmd_* calls 2017-06-08 17:13:28 +10:00
cmd.py Refactor: use lazy logging 2017-05-30 14:39:58 +10:00
config.py Add state to NodeBase class 2017-06-08 17:13:26 +10:00
exception.py Move exception to it's own file (again) 2017-05-20 06:44:39 +00:00
plugin.py Remove 'state' argument from later cmd_* calls 2017-06-08 17:13:28 +10:00
utils.py Refactor mount-point sorting 2017-05-31 11:05:50 +10:00