Revision e51db2a6
b/lib/backend.py | ||
---|---|---|
1461 | 1461 |
else: |
1462 | 1462 |
devs.append(bd.dev_path) |
1463 | 1463 |
else: |
1464 |
if not utils.IsNormAbsPath(rpath): |
|
1465 |
_Fail("Strange path returned from StaticDevPath: '%s'", rpath) |
|
1464 | 1466 |
devs.append(rpath) |
1465 | 1467 |
parent_bdev.RemoveChildren(devs) |
1466 | 1468 |
|
b/lib/objects.py | ||
---|---|---|
411 | 411 |
irrespective of their status. For such devices, we return this |
412 | 412 |
path, for others we return None. |
413 | 413 |
|
414 |
@warning: The path returned is not a normalized pathname; callers |
|
415 |
should check that it is a valid path. |
|
416 |
|
|
414 | 417 |
""" |
415 | 418 |
if self.dev_type == constants.LD_LV: |
416 | 419 |
return "/dev/%s/%s" % (self.logical_id[0], self.logical_id[1]) |
Also available in: Unified diff