Add caller-validation on Disk.StaticDevPath
authorIustin Pop <iustin@google.com>
Fri, 5 Mar 2010 10:17:59 +0000 (11:17 +0100)
committerIustin Pop <iustin@google.com>
Mon, 8 Mar 2010 13:52:39 +0000 (14:52 +0100)
commite51db2a60de2f1a6a3b651586d31a2ddecbe6698
tree4da3383e214e9a25cad5c4d130176fa1af987939
parent30786fc9c784cca7225caa29942726070ed2d40f
Add caller-validation on Disk.StaticDevPath

Since in objects we don't have access to utils.py, we add a warning that
the result value from objects.Disk.StaticDevPath might not be a valid
path, and change its only caller to validate the path.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/backend.py
lib/objects.py