Commit 780cc016 authored by Grégory Wisniewski's avatar Grégory Wisniewski

When updating the partition table, create a storage node if it's unknown at this

moment. But this may be removed later.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@994 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9efd784d
......@@ -169,7 +169,12 @@ class PartitionTable(object):
def update(self, cell_list, nm):
for offset, uuid, state in cell_list:
node = nm.getNodeByUUID(uuid)
assert node is not None
if node is None:
logging.warning('Updating partition table with an unknown UUID : %s',
dump(uuid))
from neo.node import StorageNode
node = StorageNode(uuid=uuid)
nm.add(node)
self.setCell(offset, node, state)
logging.debug('partition table updated')
self.log()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment