Revision be345db0
b/lib/bdev.py | ||
---|---|---|
290 | 290 |
self.dev_path = "/dev/%s/%s" % (self._vg_name, self._lv_name) |
291 | 291 |
self.Attach() |
292 | 292 |
|
293 |
|
|
294 | 293 |
@classmethod |
295 | 294 |
def Create(cls, unique_id, children, size): |
296 | 295 |
"""Create a new logical volume. |
... | ... | |
380 | 379 |
if result.failed: |
381 | 380 |
raise errors.BlockDeviceError("Failed to rename the logical volume: %s" % |
382 | 381 |
result.output) |
382 |
self._lv_name = new_name |
|
383 |
self.dev_path = "/dev/%s/%s" % (self._vg_name, self._lv_name) |
|
384 |
|
|
383 | 385 |
|
384 | 386 |
def Attach(self): |
385 | 387 |
"""Attach to an existing LV. |
Also available in: Unified diff